Amazon API Gateway REST API Reference

resource:delete

Deletes an API resource represented by a Resource instance.

HTTP Request

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

Remarks

Example: Delete an API resource

Request

The following example request deletes the API resource as identified by m799ha from an API as identified by fugvjdxtri.

DELETE /restapis/fugvjdxtri/resources/m799ha HTTP/1.1
Content-Type: application/json
Host: apigateway.us-east-1.amazonaws.com
X-Amz-Date: 20170223T020907Z
Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns the 202 Accepted status code without a payload.

See Also

AWS CLI