Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/1ca055f2-d6aa-4e2d-8fb9-52269415732a/apps/a4182694-7fa8-4f82-a328-d6e1d7dea7a3

Parameters

Name Description Valid Values Example Values
app_guid The guid of the app

Body

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/routes/1ca055f2-d6aa-4e2d-8fb9-52269415732a/apps/a4182694-7fa8-4f82-a328-d6e1d7dea7a3" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxOSIsImVtYWlsIjoiZW1haWwtMzA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTd9.AqTroEPlIfcW5pBOv3vOHz205soImnvZB_DvmFtiLUY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1ca055f2-d6aa-4e2d-8fb9-52269415732a",
    "url": "/v2/routes/1ca055f2-d6aa-4e2d-8fb9-52269415732a",
    "created_at": "2015-08-06T00:36:57Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-22",
    "path": "",
    "domain_guid": "386e3340-e885-4918-9ccb-2e3bde3bef34",
    "space_guid": "7ac07e80-f29b-4985-a5d0-de43c0cd5022",
    "domain_url": "/v2/domains/386e3340-e885-4918-9ccb-2e3bde3bef34",
    "space_url": "/v2/spaces/7ac07e80-f29b-4985-a5d0-de43c0cd5022",
    "apps_url": "/v2/routes/1ca055f2-d6aa-4e2d-8fb9-52269415732a/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0ffc25e6-a62a-4c8d-9003-ff329e2b9282
Content-Length: 586
X-Content-Type-Options: nosniff