Skip to main content
PUT
/
api
/
v1
/
contacts
/
{contactId}
/
block
curl --request PUT \
--url http://localhost:{port}/api/v1/contacts/{contactId}/block \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"blocked": true
}
'
{
  "blocked": true
}

Authorizations

Authorization
string
header
required

JWT token authentication

Path Parameters

contactId
string
required

ID of the contact

Body

application/json

Block status to set

Block contact request

blocked
boolean
required

Whether to block (true) or unblock (false) the contact

Response

Contact block status updated successfully

Block status response

blocked
boolean
required

Whether the contact is blocked or not