Help Center/ DataArts Insight/ API Reference/ Pass Management/ Updating the Status of a User Pass
Updated on 2025-02-25 GMT+08:00

Updating the Status of a User Pass

Function

This API is used to update statuses of user passes.

URI

PUT /v1/{project_id}/quota-users

Table 1 URI parameter

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For how to obtain the project ID, see Obtaining a Project ID.

Request Parameters

Table 2 Request header parameter

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token. Obtain a user token by calling IAM's "Obtaining a User Token" API. X-Subject-Token in the response header is the desired user token.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

user_id_list

Yes

Array of strings

User ID list.

sys_role

Yes

Integer

User role. The options include:

  • 0: inactive user.
  • 1: general user.
  • 2: read-only user.

Response Parameters

Status code: 200

Table 4 Response body parameter

Parameter

Type

Description

data

Boolean

Whether the request is successful. The options include true and false.

Example Request

PUT https://{endpoint}/v1/{project_id}/quota-users

Example Response

None

Status Codes

Status Code

Description

200

The user pass status is successfully edited.

Error Codes

See Error Codes.