UpdateProjectRole
Updates the permissions of a custom role in a workspace.
Operation description
The caller must have role management permissions for the target workspace. If you call this operation as a RAM user or RAM role, you must also be granted the dataworks:UpdateProjectRole permission.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:UpdateProjectRole |
update |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the workspace management page to obtain the ID. This parameter specifies the DataWorks workspace used for this API call. |
234 |
| Code |
string |
Yes |
The identifier of the custom role in the target workspace. You can call the ListProjectRoles operation and obtain the value from |
base_role_xx |
| ModulePermissions |
array<object> |
Yes |
The list of DataWorks module permissions to update. For each item, specify the module identifier |
|
|
object |
No |
The DataWorks module permission. |
||
| ModuleId |
integer |
No |
The DataWorks module IDs are as follows:
Valid values:
|
2 |
| PermissionType |
string |
No |
The permission type. Valid values:
|
Write |
| ClientToken |
string |
No |
Reserved field. |
0000-ABCD-EFG**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
037DFCE4-ABA5-51D7-9F2D-CCF709252DAA |
Examples
Success response
JSON format
{
"RequestId": "037DFCE4-ABA5-51D7-9F2D-CCF709252DAA"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.