Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/bcbe4f8d-b66e-4353-839a-1a19fb273b3b/apps/d99ada2c-08d9-4221-a077-564a556f3813

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgiLCJlbWFpbCI6ImVtYWlsLThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMjMxMzYwM30.w6osn08zXB0G1Hpg0h3U5Hs5cK-ElB-YOIvkzH9idbk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/bcbe4f8d-b66e-4353-839a-1a19fb273b3b/apps/d99ada2c-08d9-4221-a077-564a556f3813" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgiLCJlbWFpbCI6ImVtYWlsLThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMjMxMzYwM30.w6osn08zXB0G1Hpg0h3U5Hs5cK-ElB-YOIvkzH9idbk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "bcbe4f8d-b66e-4353-839a-1a19fb273b3b",
    "url": "/v2/routes/bcbe4f8d-b66e-4353-839a-1a19fb273b3b",
    "created_at": "2015-05-15T16:53:23Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-8",
    "path": "",
    "domain_guid": "98173833-0acf-4687-99dc-7130f539c924",
    "space_guid": "20d6ce32-2fea-4f95-a0e5-3e95d960c025",
    "domain_url": "/v2/domains/98173833-0acf-4687-99dc-7130f539c924",
    "space_url": "/v2/spaces/20d6ce32-2fea-4f95-a0e5-3e95d960c025",
    "apps_url": "/v2/routes/bcbe4f8d-b66e-4353-839a-1a19fb273b3b/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c3107282-9b63-4de2-a2a8-ab904b3a2963
Content-Length: 585
X-Content-Type-Options: nosniff