Skip to main content

Reactivate User ID

Re-enable deactivated user IDs in the IM service, supporting batch operations.

To obtain the operation result for each user ID, please register the User Deactivation and Activation Status Callback in the Console in advance.

tip
  • After deactivating a user, the personal data associated with the ID has been deleted. Reactivating the ID will not restore the deleted personal data.
  • User IDs cannot be reactivated within one hour after the deactivation request is initiated.

Request Method

POST: https://data center domain/user/reactivate.json

Signature Rule: All server API requests must be validated according to the API Request Signature rules.

Rate Limit: 100 users per second

Body Parameters

The HTTP request body data format is application/x-www-form-urlencoded, supporting the following HTTP form parameters:

ParameterTypeRequiredDescription
userIdStringYesReactivate user IDs. Up to 100 user IDs can be passed in a single request.

Request Example

POST /user/reactivate.json HTTP/1.1
Host: api.rong-api.com
App-Key: uwd1c0sxdlx2
Nonce: 14314
Timestamp: 1408710653491
Signature: 45beb7cc7307889a8e711219a47b7cf6a5b000e8
Content-Type: application/x-www-form-urlencoded
X-Request-ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXX (max length 36)

userId=uid1,uid2

Response Result

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

Return ValueReturn TypeDescription
codeNumberReturn code, 200 indicates success. The operation result for each user ID is passed via the User Deactivation and Activation Status Callback.
operateIdStringOperation ID, a unique identifier for the current operation. This parameter is included in the callback request body after enabling the User Deactivation and Activation Status Callback.

Response Example

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

{"code":200,"operateId":"C70B-B1D6-82E8-5SBO"}