UpdateWorkspaceRole
Updates the workspace role.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:UpdateWorkspaceRole |
update |
*All Resource
|
None | None |
Request syntax
PUT /api/v1/workspaces/{WorkspaceId}/roles/{RoleId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The workspace ID. You can obtain the workspace ID by calling the ListWorkspaces operation. |
83*** |
| RoleId |
string |
Yes |
The role ID. |
role-dhg******* |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request struct. |
|
| RoleName |
string |
No |
The name of the custom role. The name must be unique within the same workspace. The name can contain letters, digits, underscores (_), and hyphens (-), and can be up to 64 characters in length. |
dev-test |
| ModulePermissions | ModulePermissions |
No |
The permission configuration of the role. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
A519F77D-28A0-52F5-AB82-5********8 |
| InstanceJobId |
string |
The ID of the task corresponding to the request. |
UpdateWorkspaceCustomRole-role-***abc******* |
Examples
Success response
JSON format
{
"RequestId": "A519F77D-28A0-52F5-AB82-5********8\n",
"InstanceJobId": "UpdateWorkspaceCustomRole-role-***abc*******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.