Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/11c66064-5ff4-4f94-a63b-b68b43484760/apps/c7340572-bddf-4be4-8239-5b4e308292c6

Body

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/routes/11c66064-5ff4-4f94-a63b-b68b43484760/apps/c7340572-bddf-4be4-8239-5b4e308292c6" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk2fQ.ukQ3ICHugWHYyT4u3_m1ffIi2xgPmHFHdkJndWe6sTE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "11c66064-5ff4-4f94-a63b-b68b43484760",
    "url": "/v2/routes/11c66064-5ff4-4f94-a63b-b68b43484760",
    "created_at": "2015-03-10T23:11:36Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-3",
    "domain_guid": "e1c405e2-6eb2-475c-b0a3-3cc832367123",
    "space_guid": "8f2ecf1d-8e92-4894-91c5-69a18b13ce99",
    "domain_url": "/v2/domains/e1c405e2-6eb2-475c-b0a3-3cc832367123",
    "space_url": "/v2/spaces/8f2ecf1d-8e92-4894-91c5-69a18b13ce99",
    "apps_url": "/v2/routes/11c66064-5ff4-4f94-a63b-b68b43484760/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 715cdc69-5be3-431d-ad6a-ede908751914
Content-Length: 569
X-Content-Type-Options: nosniff