Updating Organization Permissions
Function
Update organization permissions.
URI
PATCH /v2/manage/namespaces/{namespace}/access
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| namespace | Yes | String | Organization name. |
Request
Request parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| namespace_auth_array | Yes | Array of objects | Array of organization permissions to be updated. For details, see Table 3. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| user_id | Yes | String | User ID, which needs to be obtained from the Identity and Access Management (IAM) service. |
| user_name | Yes | String | Username, which needs to be obtained from the IAM service. |
| auth | Yes | Integer | User permission. 7: Manage. 3: Write. 1: Read. |
Request example
[
{
"user_id": "fb3f175c1fd146ab8cdae3272be6107b",
"user_name": "user01",
"auth": 7
}
] Response
Response example
N/A
Status Code
| Status Code | Description |
|---|---|
| 201 | Update succeeded. |
| 400 | Request error. |
| 401 | Authentication failed. |
| 404 | The organization does not exist. |
| 500 | Internal error. |
Last Article: Deleting Organization Permissions
Next Article: Querying Organization Permissions
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.