Browse Platform API
Platform APIEnterprise

Unban users

Copy

Remove the ban from one or more OpenIM users. This endpoint is available only in OpenIM Enterprise. Configure the API address and a valid token as described in Prepare to use the API.

HTTP request

POST {API_ADDRESS}/user/unban_user

Request example

curl --request POST "${API_ADDRESS}/user/unban_user" \
  --header "Content-Type: application/json; charset=utf-8" \
  --header "operationID: ${OPERATION_ID}" \
  --header "token: ${TOKEN}" \
  --data-raw '{
  "userIDs": ["user_001"]
}'
Enterprise: This endpoint requires the corresponding OpenIM Enterprise services. Availability and permissions depend on the delivered version.

Request body

{
  "userIDs": ["user_001"]
}
ParameterRequiredTypeDescription
userIDsYesstring[]OpenIM user IDs to unban.

Response

A normally processed request typically returns 200 OK. Check errCode in the response body to determine whether the operation succeeded.

{
  "errCode": 0,
  "errMsg": "",
  "errDlt": ""
}

Response properties

PropertyTypeDescription
errCodeintBusiness error code. 0 indicates success.
errMsgstringShort error message; normally empty on success.
errDltstringDetailed error information; normally empty on success.

Errors

Error responses use the common Platform API structure. See Error codes.

Permissions and limits

  • Available only in OpenIM Enterprise.
  • The caller must validate its authority over the target users.
  • Request array limits follow the limits of the delivered server version.