Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/5e010eaa-8257-49b4-9f5a-eb8730152b8c/apps/42e28b55-0f32-45b8-8a4d-f61d24fa908e

Body

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/routes/5e010eaa-8257-49b4-9f5a-eb8730152b8c/apps/42e28b55-0f32-45b8-8a4d-f61d24fa908e" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OCIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NzB9.mAn2WYtYpoIoxpzXE2EKYEfgtaCAmVRECGRsaKVJYO8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5e010eaa-8257-49b4-9f5a-eb8730152b8c",
    "url": "/v2/routes/5e010eaa-8257-49b4-9f5a-eb8730152b8c",
    "created_at": "2015-03-20T18:27:49Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-14",
    "domain_guid": "7cd2b1f1-7e6b-4593-a015-a1473d8d61a9",
    "space_guid": "bb629f9c-f125-4bcc-b2d3-0358c6df2613",
    "domain_url": "/v2/domains/7cd2b1f1-7e6b-4593-a015-a1473d8d61a9",
    "space_url": "/v2/spaces/bb629f9c-f125-4bcc-b2d3-0358c6df2613",
    "apps_url": "/v2/routes/5e010eaa-8257-49b4-9f5a-eb8730152b8c/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 071be722-d3d5-4091-b122-b6af12233fed
Content-Length: 570
X-Content-Type-Options: nosniff