Block a user

POST {{baseUrl}}/v3/users/:user_id/block

Block a user

Allows a user to block another user. A user doesn't receive messages from someone they have blocked anymore. Also, blocking someone doesn't alert them that they have been blocked. Blocked users still can send messages as normal in the channel: however, they can't receive any messages from the users who have blocked them.

https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-block-a-user

Request Body

{"user_id"=>"<string>", "target_id"=>"<string>", "user_ids"=>["<string>", "<string>"], "users"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Api-Tokenstring(Required)
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;users&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;next&quot;:&quot;\u003cstring\u003e&quot;}