Modifies a role.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:UpdateRole |
update |
*All Resource
|
None | None |
Request syntax
POST /pop/v5/account/edit_role HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RoleId |
integer |
Yes |
The role ID. Call the ListRole operation to query role IDs. For more information, see ListRole. |
32371 |
| ActionData |
string |
Yes |
The permissions to grant to the role. Specify the value in the format of |
15:1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Code |
integer |
The HTTP status code. |
200 |
| Message |
string |
Additional information. |
edit successfully |
| RequestId |
string |
The request ID. |
4823-bhjf-23u4-**** |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "edit successfully",
"RequestId": "4823-bhjf-23u4-****"
}
Error codes
See Error CodesError Codes for a complete list.
Release notes
See Release NotesRelease Notes for a complete list.