Recover multiple users

更新时间:
复制 MD 格式

Call this API to recover multiple deleted users in batch.

Supported editions

Enterprise Dedicated Edition

Service endpoints

Get the service endpoint and replace {domain} in the API request syntax with your endpoint.

Authorization information

Product

Resource

Required permission

Organization Management

User

Read and write

Request syntax

POST https://{domain}/oapi/v1/platform/users:undelete

Request description

Recover multiple deleted users

curl -X 'POST' \
  'https://test-domain-***.rdc.aliyuncs.com/oapi/v1/platform/users:undelete' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "userIds": ["99d1****6124","9631****7712"]
    }'

Request headers (Headers)

x-yunxiao-token string (Required)

The access token. See Access token for details.

Example: pt-0fh3****0fbG_35af****0484.

Request parameters

userIds array[string] (Required)

The list of user IDs. See examples in the ListUsers - Query the user list API.

Response parameters

None {}

Error codes

For more information, see Error codes.