Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/5b94bc9c-d3c0-4602-9f50-f845fd1c9419/apps/f330e939-8a7c-4538-be1f-e00f06191560

Body

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/routes/5b94bc9c-d3c0-4602-9f50-f845fd1c9419/apps/f330e939-8a7c-4538-be1f-e00f06191560" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtNjlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMX0.gmIy0NWgzzslVWCG8DQwEopENopNYdPMYMu9iZ7oy4s" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5b94bc9c-d3c0-4602-9f50-f845fd1c9419",
    "url": "/v2/routes/5b94bc9c-d3c0-4602-9f50-f845fd1c9419",
    "created_at": "2015-05-07T23:37:10Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-4",
    "domain_guid": "756eab77-ed10-401f-bd9c-94a321204b70",
    "space_guid": "13c28adc-d394-48fc-8e7a-a184c400d3de",
    "path": "",
    "domain_url": "/v2/domains/756eab77-ed10-401f-bd9c-94a321204b70",
    "space_url": "/v2/spaces/13c28adc-d394-48fc-8e7a-a184c400d3de",
    "apps_url": "/v2/routes/5b94bc9c-d3c0-4602-9f50-f845fd1c9419/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f377b601-4e37-43d3-80a8-bfaed8d833ca
Content-Length: 585
X-Content-Type-Options: nosniff