Skip to content

Block the other person on an ask​

POST
/free-stuff/{id}/requests/{requestId}/block

Blocks the other person on this ask, found by the server (no person's id is ever sent): for the item's giver, the person who asked; for the person who asked, the giver. It is the account-wide block (user_blocks), which free stuff honours. The giver blocking cancels that person's open asks on the giver's things (a chosen one reopens the choice; they see "No longer available"); the asker blocking withdraws their own open ask on this item. Needs sign-in only, no verified phone. Idempotent.

Authorizations​

BearerAuth

In the browser, authentication rides on the httpOnly session cookies set by /cognito/signin or the Google / Apple sign-in at /cognito/oauth/{provider}. For scripts and for Swagger UI testing, paste an API key (fh_live_…, created with POST /api-keys); a Cognito JWT is accepted too. Sign-in does not return a token in its body.

Type
HTTP (bearer)

Parameters​

Path Parameters

id*

The item.

Type
string
Required
Format
"uuid"
requestId*

The ask.

Type
string
Required
Format
"uuid"

Responses​

Blocked.

application/json
JSON
"string"

Playground​

Server
Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Built with VitePress