Skip to main content

Overview

Restore a user's ability to send private messages to specified users.

Request

Authentication: Add authentication headers to the request. See Authentication.

Method: POST

Rate limit: 100 requests/second

Endpoint: https://API domain/apigateway/users/blockusers/unblock

Content-Type: application/json

Request Parameters

ParameterData TypeRequiredDescription
user_idstringYesID of the user whose private-message restrictions are being removed. Maximum length: 32 characters.
block_user_idsarrayYesList of users that the specified user is allowed to message again. Each user ID can contain up to 32 characters.

Request Example

POST /apigateway/users/blockusers/unblock HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json

{
"user_id":"user1",
"block_user_ids":["user2","user3"]
}

Response Example

{
"code":0,
"msg":"sucess"
}