Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/490b80d5-c66a-49c5-b1e2-1ac8b9bc8f54/apps/d64b9906-8401-4b0c-95ed-a5877b3aa880

Body

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/routes/490b80d5-c66a-49c5-b1e2-1ac8b9bc8f54/apps/d64b9906-8401-4b0c-95ed-a5877b3aa880" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkiLCJlbWFpbCI6ImVtYWlsLTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk1NX0.-BbjvceFdDs6nAuKvMbr5LVQQim0JlnNMG7Y4J00vEA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "490b80d5-c66a-49c5-b1e2-1ac8b9bc8f54",
    "url": "/v2/routes/490b80d5-c66a-49c5-b1e2-1ac8b9bc8f54",
    "created_at": "2015-03-18T22:52:35Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-8",
    "domain_guid": "f2d8aead-7161-4ce5-8092-b53822ee9056",
    "space_guid": "790e6ff6-3208-40c9-bb57-e60cc5aec45d",
    "domain_url": "/v2/domains/f2d8aead-7161-4ce5-8092-b53822ee9056",
    "space_url": "/v2/spaces/790e6ff6-3208-40c9-bb57-e60cc5aec45d",
    "apps_url": "/v2/routes/490b80d5-c66a-49c5-b1e2-1ac8b9bc8f54/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 189fc77c-5119-42bd-a617-3414472ac964
Content-Length: 569
X-Content-Type-Options: nosniff