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
Key | Datatype | Required | Description |
---|---|---|---|
Api-Token | string | (Required) | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"users":["\u003cstring\u003e","\u003cstring\u003e"],"next":"\u003cstring\u003e"}