AmazonApiGatewayV2
  1. Root
AmazonApiGatewayV2
  • Root
    • /v2/apis
      POST
    • /v2/apis
      GET
    • /v2/apis
      PUT
    • /v2/domainnames/{domainName}/apimappings
      POST
    • /v2/domainnames/{domainName}/apimappings
      GET
    • /v2/apis/{apiId}/authorizers
      POST
    • /v2/apis/{apiId}/authorizers
      GET
    • /v2/apis/{apiId}/deployments
      POST
    • /v2/apis/{apiId}/deployments
      GET
    • /v2/domainnames
      POST
    • /v2/domainnames
      GET
    • /v2/apis/{apiId}/integrations
      POST
    • /v2/apis/{apiId}/integrations
      GET
    • /v2/apis/{apiId}/integrations/{integrationId}/integrationresponses
      POST
    • /v2/apis/{apiId}/integrations/{integrationId}/integrationresponses
      GET
    • /v2/apis/{apiId}/models
      POST
    • /v2/apis/{apiId}/models
      GET
    • /v2/apis/{apiId}/routes
      POST
    • /v2/apis/{apiId}/routes
      GET
    • /v2/apis/{apiId}/routes/{routeId}/routeresponses
      POST
    • /v2/apis/{apiId}/routes/{routeId}/routeresponses
      GET
    • /v2/apis/{apiId}/stages
      POST
    • /v2/apis/{apiId}/stages
      GET
    • /v2/vpclinks
      POST
    • /v2/vpclinks
      GET
    • /v2/apis/{apiId}/stages/{stageName}/accesslogsettings
      DELETE
    • /v2/apis/{apiId}
      DELETE
    • /v2/apis/{apiId}
      GET
    • /v2/apis/{apiId}
      PUT
    • /v2/apis/{apiId}
      PATCH
    • /v2/domainnames/{domainName}/apimappings/{apiMappingId}
      DELETE
    • /v2/domainnames/{domainName}/apimappings/{apiMappingId}
      GET
    • /v2/domainnames/{domainName}/apimappings/{apiMappingId}
      PATCH
    • /v2/apis/{apiId}/authorizers/{authorizerId}
      DELETE
    • /v2/apis/{apiId}/authorizers/{authorizerId}
      GET
    • /v2/apis/{apiId}/authorizers/{authorizerId}
      PATCH
    • /v2/apis/{apiId}/cors
      DELETE
    • /v2/apis/{apiId}/deployments/{deploymentId}
      DELETE
    • /v2/apis/{apiId}/deployments/{deploymentId}
      GET
    • /v2/apis/{apiId}/deployments/{deploymentId}
      PATCH
    • /v2/domainnames/{domainName}
      DELETE
    • /v2/domainnames/{domainName}
      GET
    • /v2/domainnames/{domainName}
      PATCH
    • /v2/apis/{apiId}/integrations/{integrationId}
      DELETE
    • /v2/apis/{apiId}/integrations/{integrationId}
      GET
    • /v2/apis/{apiId}/integrations/{integrationId}
      PATCH
    • /v2/apis/{apiId}/integrations/{integrationId}/integrationresponses/{integrationResponseId}
      DELETE
    • /v2/apis/{apiId}/integrations/{integrationId}/integrationresponses/{integrationResponseId}
      GET
    • /v2/apis/{apiId}/integrations/{integrationId}/integrationresponses/{integrationResponseId}
      PATCH
    • /v2/apis/{apiId}/models/{modelId}
      DELETE
    • /v2/apis/{apiId}/models/{modelId}
      GET
    • /v2/apis/{apiId}/models/{modelId}
      PATCH
    • /v2/apis/{apiId}/routes/{routeId}
      DELETE
    • /v2/apis/{apiId}/routes/{routeId}
      GET
    • /v2/apis/{apiId}/routes/{routeId}
      PATCH
    • /v2/apis/{apiId}/routes/{routeId}/requestparameters/{requestParameterKey}
      DELETE
    • /v2/apis/{apiId}/routes/{routeId}/routeresponses/{routeResponseId}
      DELETE
    • /v2/apis/{apiId}/routes/{routeId}/routeresponses/{routeResponseId}
      GET
    • /v2/apis/{apiId}/routes/{routeId}/routeresponses/{routeResponseId}
      PATCH
    • /v2/apis/{apiId}/stages/{stageName}/routesettings/{routeKey}
      DELETE
    • /v2/apis/{apiId}/stages/{stageName}
      DELETE
    • /v2/apis/{apiId}/stages/{stageName}
      GET
    • /v2/apis/{apiId}/stages/{stageName}
      PATCH
    • /v2/vpclinks/{vpcLinkId}
      DELETE
    • /v2/vpclinks/{vpcLinkId}
      GET
    • /v2/vpclinks/{vpcLinkId}
      PATCH
    • /v2/apis/{apiId}/exports/{specification}
      GET
    • /v2/apis/{apiId}/stages/{stageName}/cache/authorizers
      DELETE
    • /v2/apis/{apiId}/models/{modelId}/template
      GET
    • /v2/tags/{resource-arn}
      GET
    • /v2/tags/{resource-arn}
      POST
    • /v2/tags/{resource-arn}
      DELETE
  1. Root

/v2/apis

PUT
/v2/apis
Imports an API.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/v2/apis' \
--header 'Content-Type: application/json' \
--data-raw '{
    "body": "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

Query Params
basepath
string 
optional
Specifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.
failOnWarnings
string 
optional
Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
Body Params application/json
body
string 
required
The OpenAPI definition. Supported only for HTTP APIs.
Examples

Responses

🟢201Success
application/json
Body
ApiEndpoint
string 
optional
The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.
ApiGatewayManaged
boolean 
optional
Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.
ApiId
string 
optional
The API ID.
ApiKeySelectionExpression
string 
optional
An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
CorsConfiguration
object 
optional
A CORS configuration. Supported only for HTTP APIs.
AllowCredentials
boolean 
optional
Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
AllowHeaders
array[string]
optional
Represents a collection of allowed headers. Supported only for HTTP APIs.
AllowMethods
array[string]
optional
Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
AllowOrigins
array[string]
optional
Represents a collection of allowed origins. Supported only for HTTP APIs.
ExposeHeaders
array[string]
optional
Represents a collection of exposed headers. Supported only for HTTP APIs.
MaxAge
integer 
optional
The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
>= -1<= 86400
CreatedDate
string <date-time>
optional
The timestamp when the API was created.
Description
string 
optional
The description of the API.
DisableSchemaValidation
boolean 
optional
Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
DisableExecuteApiEndpoint
boolean 
optional
Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.
ImportInfo
array[string]
optional
The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.
Name
string 
optional
The name of the API.
ProtocolType
enum<string> 
optional
The API protocol.
Allowed values:
WEBSOCKETHTTP
RouteSelectionExpression
string 
optional
The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be request.method{request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.
Tags
object 
optional
A collection of tags associated with the API.
Version
string 
optional
A version identifier for the API.
Warnings
array[string]
optional
The warning messages reported when failonwarnings is turned on during API import.
🟠480NotFoundException
🟠481TooManyRequestsException
🟠482BadRequestException
🟠483ConflictException
Modified at 2023-08-15 05:49:07
Previous
/v2/apis
Next
/v2/domainnames/{domainName}/apimappings
Built with