Home
Version 3
Routes Mapping API

Routes Mapping API

Delete a Particular Route Mapping

DELETE /v2/route_mappings/:guid?

Request

Route

DELETE /v2/route_mappings/9a93db8b-2c5d-4a09-9bce-2bb1c7ae4744?

Parameters

Name Description Valid Values Example Values
guid The guid of the Route Mapping
async Will run the delete request in a background job. Recommended: 'true'.
  • true
  • false

Body

Name Description Default Valid Values Example Values
app_guid The guid of the bound application.
  • guid-77cfb0d2-bed5-436f-b9a7-a734da5cf571
route_guid The guid of the bound route.
  • guid-45b46c81-7f75-4b7f-b5f9-5fafcf46c0b2
app_port Port on which the application should listen, and to which requests for the mapped route will be routed. Must be among those already configured for the app. If a port is not specified when mapping the route, the first one in the list of those configured for the app will be chosen.

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgzIiwiZW1haWwiOiJlbWFpbC04MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI3fQ.wNVCcudDUqVX2DsJ7kJtHB0fTyfBXegUoSfUP1SdPXU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/route_mappings/9a93db8b-2c5d-4a09-9bce-2bb1c7ae4744?" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgzIiwiZW1haWwiOiJlbWFpbC04MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI3fQ.wNVCcudDUqVX2DsJ7kJtHB0fTyfBXegUoSfUP1SdPXU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 
X-Content-Type-Options: nosniff