UpdateAuthorizationRule
Updates an authorization rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:UpdateAuthorizationRule |
update |
*All Resource
|
None | None |
Request syntax
PUT /v1/authorization-rules/{consumerAuthorizationRuleId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| consumerAuthorizationRuleId |
string |
No |
The ID of the authorization rule. This parameter is required. The rule must belong to the current user. The rule is filtered and updated by user and rule ID. |
car-xxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters. |
|
| resources |
array |
No |
The new list of authorized resources. In MCP Tool scenarios, this is a set of tool names. If an empty array is specified, the ErrInvalidParameterWithEmpty error is returned. |
|
|
string |
No |
The new list of authorized resources. |
["weather_query","stock_price"] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
019FCFBD-4B8D-57A4-91DA-A3B517002442 |
| code |
string |
The response code. |
200 |
| message |
string |
The response message. |
success |
Examples
Success response
JSON format
{
"requestId": "019FCFBD-4B8D-57A4-91DA-A3B517002442",
"code": "200",
"message": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.