Skip to main content

Unban User

Remove the ban from a banned user.

Request Method

POST: https://data center domain/rtc/user/unblock.json

Signature Rules: All requests to RC server APIs require signature validation. See API Request Signature for details.

Request Body

The HTTP request body contains a JSON object with the following structure:

ParameterTypeRequiredDescription
userIdStringYesThe Target ID of the user to unban

Request Example

POST /rtc/user/unblock.json HTTP/1.1
Host: api.rong-api.com
App-Key: uwd1c0sxdlx2
Timestamp: 1585127132438
Nonce: 14314
Signature: 45beb7cc7307889a8e711219a47b7cf6a5b000e8
Content-Type: application/json

{
"userId":"DDDDD"
}

Response

The HTTP response body contains a JSON object with the following structure:

  • code: Business status code in the HTTP response body. 200 indicates success.

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
"code":200
}