UpdateWorkspaceRole
Updates a role in a workspace.
Try it now
Test
RAM authorization
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. Call the ListWorkspaces operation to obtain this ID. |
83*** |
| RoleId |
string |
Yes |
The role ID. |
role-dhg******* |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| RoleName |
string |
No |
The name of the custom role. The name must be unique within the workspace. It can be up to 64 characters long and can contain letters, digits, underscores (_), and hyphens (-). |
dev-test |
| ModulePermissions | ModulePermissions |
No |
The permission settings for the role. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
A519F77D-28A0-52F5-AB82-5********8 |
| InstanceJobId |
string |
The task ID. |
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.