Dayli Docs
API referenceRelationships

Block a user

POST
/api/v1/relationships/{userId}/block

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

userId*string
Length1 <= length <= 128

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/relationships/post_01K4Y6P8K2/block"
{  "userId": "post_01K4Y6P8K2",  "status": "none",  "incomingRequest": {    "id": "post_01K4Y6P8K2",    "senderId": "post_01K4Y6P8K2",    "recipientId": "post_01K4Y6P8K2",    "createdAt": "2026-09-09T12:00:00Z",    "user": {      "id": "post_01K4Y6P8K2",      "username": "string",      "displayName": "string",      "relationship": "none"    }  },  "outgoingRequest": {    "id": "post_01K4Y6P8K2",    "senderId": "post_01K4Y6P8K2",    "recipientId": "post_01K4Y6P8K2",    "createdAt": "2026-09-09T12:00:00Z",    "user": {      "id": "post_01K4Y6P8K2",      "username": "string",      "displayName": "string",      "relationship": "none"    }  }}