BatchUpdateHttpApiOperation
Updates HTTP API operations in batches.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:BatchUpdateHttpApiOperation |
update |
*HttpApi
|
None | None |
Request syntax
PUT /v1/http-apis/{httpApiId}/operations HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| httpApiId |
string |
No |
The ID of the HTTP API. |
api-xxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| enableAuth |
boolean |
No |
Specifies whether to enable consumer authentication. If set to true, a valid authConfig must be provided. If set to false, authConfig is not validated and the existing configuration remains unchanged. |
true |
| authConfig |
object |
No |
The authentication configuration. This parameter is required when enableAuth is set to true. |
|
| authType |
string |
No |
The authentication type. Valid values:
|
Jwt |
| authMode |
string |
No |
The authentication mode. Valid values:
|
Custom |
| operationIds |
array |
No |
The list of operation IDs to update in batches. This parameter cannot be empty. |
|
|
string |
No |
The list. |
["op-xxxx1","op-xxxx2"] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
4CF2E0A5-xxxx |
| code |
string |
The response status code. |
200 |
| message |
string |
The response message. |
success |
Examples
Success response
JSON format
{
"requestId": "4CF2E0A5-xxxx",
"code": "200",
"message": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.