Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Fields

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

Request

Headers

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

Route

DELETE /v2/routes/a716c443-7b8f-4003-86fc-a4b2e6ce4560/apps/54a5a673-74b7-4e85-8d6a-3751c799892a

cURL

curl "https://api.[your-domain.com]/v2/routes/a716c443-7b8f-4003-86fc-a4b2e6ce4560/apps/54a5a673-74b7-4e85-8d6a-3751c799892a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NSIsImVtYWlsIjoiZW1haWwtMjIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNTF9.ORJFsYgGCbxAofijESV3AuXYaSNCUVrNR90D3aMIyHE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8dddd477-629d-44d4-a184-75f2e3d0eee3
Content-Length: 575
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "a716c443-7b8f-4003-86fc-a4b2e6ce4560",
    "url": "/v2/routes/a716c443-7b8f-4003-86fc-a4b2e6ce4560",
    "created_at": "2014-11-05T01:02:31+00:00",
    "updated_at": null
  },
  "entity": {
    "host": "host-16",
    "domain_guid": "9d8bff9a-3005-4ba6-abed-8d5bd8a2a604",
    "space_guid": "980787cb-50fc-426f-a137-70117f97931e",
    "domain_url": "/v2/domains/9d8bff9a-3005-4ba6-abed-8d5bd8a2a604",
    "space_url": "/v2/spaces/980787cb-50fc-426f-a137-70117f97931e",
    "apps_url": "/v2/routes/a716c443-7b8f-4003-86fc-a4b2e6ce4560/apps"
  }
}