Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/f067b4d3-b656-45ad-8185-78ea67d16c94/apps/d6873977-d50a-4a43-b2ec-1fc3eacf5b48

Parameters

Name Description Valid Values Example Values
app_guid The guid of the app

Body

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/routes/f067b4d3-b656-45ad-8185-78ea67d16c94/apps/d6873977-d50a-4a43-b2ec-1fc3eacf5b48" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtNzhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc5MX0.zgy3y8OTL983OXrPJhZ7MzwyyFeoEJWoYjScD2p05W0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f067b4d3-b656-45ad-8185-78ea67d16c94",
    "url": "/v2/routes/f067b4d3-b656-45ad-8185-78ea67d16c94",
    "created_at": "2015-07-27T22:43:11Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-4",
    "path": "",
    "domain_guid": "8382aecd-0a66-4539-8640-49045be3391e",
    "space_guid": "2c5b0af9-a81d-4c02-9a4a-1ae5e72fc1d9",
    "domain_url": "/v2/domains/8382aecd-0a66-4539-8640-49045be3391e",
    "space_url": "/v2/spaces/2c5b0af9-a81d-4c02-9a4a-1ae5e72fc1d9",
    "apps_url": "/v2/routes/f067b4d3-b656-45ad-8185-78ea67d16c94/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3c5cbf3e-dbeb-4ff4-97e1-4bc6e35ca9a7
Content-Length: 585
X-Content-Type-Options: nosniff