Updates the permissions of a custom role in a workspace.
Try it now
Test
RAM authorization
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 on which the API operation is performed. |
234 |
| Code |
string |
Yes |
The unique identifier of the custom role. |
base_role_xx |
| ModulePermissions |
array |
Yes |
The list of DataWorks module permissions. |
|
|
object |
No |
A DataWorks module permission. |
||
| ModuleId |
integer |
No |
The DataWorks module ID. Valid values:
Valid values:
|
2 |
| PermissionType |
string |
No |
The permission type. Valid values:
|
Write |
| ClientToken |
string |
No |
A reserved parameter. |
0000-ABCD-EFG**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID, which is used 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.