Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/21972dd0-f4ae-426d-9942-c7c72c62a0bc/apps/b0c6b8a8-f3fd-4cde-88f4-e7a86cac00dd

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NiIsImVtYWlsIjoiZW1haWwtMTQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDd9.5eY1p_X7RF9ke5CoVXrmQjicBromcOxuhteT6ipwoNQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/21972dd0-f4ae-426d-9942-c7c72c62a0bc/apps/b0c6b8a8-f3fd-4cde-88f4-e7a86cac00dd" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NiIsImVtYWlsIjoiZW1haWwtMTQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDd9.5eY1p_X7RF9ke5CoVXrmQjicBromcOxuhteT6ipwoNQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "21972dd0-f4ae-426d-9942-c7c72c62a0bc",
    "url": "/v2/routes/21972dd0-f4ae-426d-9942-c7c72c62a0bc",
    "created_at": "2015-03-05T19:15:47Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-10",
    "domain_guid": "a45e7e91-6c7e-4ef2-8904-4758b9505ea7",
    "space_guid": "6b2f99d5-a4c3-46ba-a909-87e0e2353d2c",
    "domain_url": "/v2/domains/a45e7e91-6c7e-4ef2-8904-4758b9505ea7",
    "space_url": "/v2/spaces/6b2f99d5-a4c3-46ba-a909-87e0e2353d2c",
    "apps_url": "/v2/routes/21972dd0-f4ae-426d-9942-c7c72c62a0bc/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2cb546a9-7af9-4fa5-8de0-80de2b91e75a
Content-Length: 570
X-Content-Type-Options: nosniff