Creates operations for an HTTP API.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:CreateHttpApiOperation |
create |
*HttpApi
|
None | None |
Request syntax
POST /v1/http-apis/{httpApiId}/operations HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| httpApiId |
string |
Yes |
The ID of the HTTP API for which to create operations. |
api-xxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters. |
|
| operations |
array |
No |
The list of operation definitions. |
|
| HttpApiOperation |
No |
The operation definition. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| requestId |
string |
The request ID. |
393E2630-DBE7-5221-AB35-9E740675491A |
| message |
string |
The response message. |
success |
| code |
string |
The response status code. |
Ok |
| data |
object |
The operation information. |
|
| operations |
array<object> |
The operation information. |
|
|
object |
The operation information. |
||
| operationId |
string |
The operation ID. |
op-xxx |
Examples
Success response
JSON format
{
"requestId": "393E2630-DBE7-5221-AB35-9E740675491A",
"message": "success",
"code": "Ok",
"data": {
"operations": [
{
"operationId": "op-xxx"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.