Home
Version 3
Routes API

Routes API

Remove App from the Route

DELETE /v2/routes/:guid/apps/:app_guid

Fields

Name Description Default Valid Values Example Values
guid The guid of the route.

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkyIiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyOTkwODY5fQ.mYJwnumQlfCa-QU_xYe3v2vyPEZe9oY74AH7-xRa9so
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/routes/0b4e30e8-adc9-4f13-b5f6-052c0b01d8b9/apps/ce4bdee9-45bb-4bd3-821a-b26ef8bc2e1d

cURL

curl "https://api.[your-domain.com]/v2/routes/0b4e30e8-adc9-4f13-b5f6-052c0b01d8b9/apps/ce4bdee9-45bb-4bd3-821a-b26ef8bc2e1d" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkyIiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyOTkwODY5fQ.mYJwnumQlfCa-QU_xYe3v2vyPEZe9oY74AH7-xRa9so" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0bb45c5d-8754-45c8-b368-c8b7a0098c83
Content-Length: 569
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "0b4e30e8-adc9-4f13-b5f6-052c0b01d8b9",
    "url": "/v2/routes/0b4e30e8-adc9-4f13-b5f6-052c0b01d8b9",
    "created_at": "2015-01-27T19:14:29Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-4",
    "domain_guid": "67450f50-7027-402d-ab21-d305769ada38",
    "space_guid": "c680cc3f-5aeb-4b0c-bc38-65bf296e5291",
    "domain_url": "/v2/domains/67450f50-7027-402d-ab21-d305769ada38",
    "space_url": "/v2/spaces/c680cc3f-5aeb-4b0c-bc38-65bf296e5291",
    "apps_url": "/v2/routes/0b4e30e8-adc9-4f13-b5f6-052c0b01d8b9/apps"
  }
}