/v2/apis/{apiId}/stages/{stageName}
PATCH
/v2/apis/{apiId}/stages/{stageName}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/v2/apis//stages/' \
--header 'Content-Type: application/json' \
--data-raw '{
"accessLogSettings": {
"DestinationArn": "string",
"Format": "string"
},
"autoDeploy": true,
"clientCertificateId": "string",
"defaultRouteSettings": {
"DataTraceEnabled": true,
"DetailedMetricsEnabled": true,
"LoggingLevel": "ERROR",
"ThrottlingBurstLimit": 0,
"ThrottlingRateLimit": 0
},
"deploymentId": "string",
"description": "string",
"routeSettings": {
"property1": {
"DataTraceEnabled": true,
"DetailedMetricsEnabled": true,
"LoggingLevel": "ERROR",
"ThrottlingBurstLimit": 0,
"ThrottlingRateLimit": 0
}
},
"stageVariables": {
"property1": "string",
"property2": "string"
}
}'
Response Response Example
200 - Example 1
{
"AccessLogSettings": {
"DestinationArn": "string",
"Format": "string"
},
"ApiGatewayManaged": true,
"AutoDeploy": true,
"ClientCertificateId": "string",
"CreatedDate": "string",
"DefaultRouteSettings": {
"DataTraceEnabled": true,
"DetailedMetricsEnabled": true,
"LoggingLevel": "ERROR",
"ThrottlingBurstLimit": 0,
"ThrottlingRateLimit": 0
},
"DeploymentId": "string",
"Description": "string",
"LastDeploymentStatusMessage": "string",
"LastUpdatedDate": "string",
"RouteSettings": {
"property1": {},
"property2": {}
},
"StageName": "string",
"StageVariables": {
"property1": "string",
"property2": "string"
},
"Tags": {
"property1": "string",
"property2": "string"
}
}
Request
Path Params
apiId
stringÂ
required
stageName
stringÂ
required
Body Params application/json
Responses
Modified at 2023-08-15 05:49:07