Amazon API Gateway REST API Reference

method:delete

Delete the method resource.

HTTP Request

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

Remarks

Example: Delete the GET method on a specified resource

Request

DELETE /restapis/8ekh4oszgl/resources/4oa3abz7jc/methods/GET HTTP/1.1
Content-Type: application/json
Host: apigateway.us-east-1.amazonaws.com
X-Amz-Date: 20160613T212356Z
Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-length;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