Amazon API Gateway REST API Reference

basepathmapping:delete

Deletes the base path mapping resource.

HTTP Request

DELETE /domainnames/<domain_name>/basepathmappings/<base_path>

Remarks

To specify an empty base path in the request URL, set the base_path path variable to (none).

Example: Delete a base path mapping of an API

Request

The following example request deletes a base path (TestApi) of a custom domain name (a.b.c.com).

DELET /domainnames/a.b.c.com/basepathmappings/TestApi HTTP/1.1
Content-Type: application/json
Host: apigateway.us-east-1.amazonaws.com
X-Amz-Date: 20160615T025216Z
Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160615/us-east-1/apigateway/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns a 202 Accepted status code and no payload.

See Also

AWS CLI