Update user status

Enable or disable the specified user’s workspace membership. When disabled, the user can no longer access the current workspace.

HTTP
POST $CLOUDSIGMA_API_BASE/user/update_status

Before you call this API

Configure the regional API endpoint and authentication, and select the target workspace.

First select the user and confirm the membership to enable or disable.

Request parameters

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/user/update_status" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "user-001"
  }'

Parameter

Type

Required

Description

id

string

Yes

User ID.

action

string

Yes

Status action. It must be enable or disable.

Successful response

On success, the user has been enabled or disabled and data is null.

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": null
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data

null

Always null on success.

Error response

JSON
{
  "code": "INVALID_ARGUMENT",
  "msg": "请求参数无效",
  "data": null
}

Field

Type

Description

code

string

Error code.

msg

string

Error message.

data

null

—

Last updated on