/v2/apis
POST
/v2/apis
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/apis' \
--header 'Content-Type: application/json' \
--data-raw '{
"apiKeySelectionExpression": "string",
"corsConfiguration": {
"AllowCredentials": true,
"AllowHeaders": [],
"AllowMethods": [],
"AllowOrigins": [],
"ExposeHeaders": [],
"MaxAge": 0
},
"credentialsArn": "string",
"description": "string",
"disableSchemaValidation": true,
"disableExecuteApiEndpoint": true,
"name": "string",
"protocolType": "WEBSOCKET",
"routeKey": "string",
"routeSelectionExpression": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"target": "string",
"version": "string"
}'
Response Response Example
201 - Example 1
{
"ApiEndpoint": "string",
"ApiGatewayManaged": true,
"ApiId": "string",
"ApiKeySelectionExpression": "string",
"CorsConfiguration": {
"AllowCredentials": true,
"AllowHeaders": [],
"AllowMethods": [],
"AllowOrigins": [],
"ExposeHeaders": [],
"MaxAge": 0
},
"CreatedDate": "string",
"Description": "string",
"DisableSchemaValidation": true,
"DisableExecuteApiEndpoint": true,
"ImportInfo": [],
"Name": "string",
"ProtocolType": "WEBSOCKET",
"RouteSelectionExpression": "string",
"Tags": {
"property1": "string",
"property2": "string"
},
"Version": "string",
"Warnings": []
}
Request
Body Params application/json