Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/acb2acae-d810-4232-b4ca-743479bc4980/apps/2a094e92-0599-471a-a25c-e302dd2d9ff3

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0IiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4Njk5fQ.t-oWNR2gAHYjk1uzUZ0qDylAK_vmr890caubseJJif4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/acb2acae-d810-4232-b4ca-743479bc4980/apps/2a094e92-0599-471a-a25c-e302dd2d9ff3" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0IiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4Njk5fQ.t-oWNR2gAHYjk1uzUZ0qDylAK_vmr890caubseJJif4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "acb2acae-d810-4232-b4ca-743479bc4980",
    "url": "/v2/routes/acb2acae-d810-4232-b4ca-743479bc4980",
    "created_at": "2015-04-07T19:11:39Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-10",
    "domain_guid": "b24c0a60-2075-4d35-bcf4-554671f8da02",
    "space_guid": "0a5ca03d-3715-4bed-938b-7c368dbb1017",
    "domain_url": "/v2/domains/b24c0a60-2075-4d35-bcf4-554671f8da02",
    "space_url": "/v2/spaces/0a5ca03d-3715-4bed-938b-7c368dbb1017",
    "apps_url": "/v2/routes/acb2acae-d810-4232-b4ca-743479bc4980/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 452fc794-13b2-4d7a-92e5-531e5de70674
Content-Length: 570
X-Content-Type-Options: nosniff