Amazon API Gateway REST API Reference

methodresponse:delete

Deletes method response settings.

HTTP Request

DELETE /restapis/<restapi_id>/resources/<resource_id>/methods/<http_method>/responses/<status_code>

Remarks

Example: Delete a method response of a given status code

Request

DELETE /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1
Content-Type: application/json
Host: apigateway.us-east-1.amazonaws.com
Content-Length: 117
X-Amz-Date: 20160613T215008Z
Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns a 204 No Content status code without a payload.

See Also

AWS CLI