Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/fc6f69d4-d54d-4e7e-b4a4-62514245584a/apps/6d47ab8b-d903-4984-8ace-74b619eac462

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NyIsImVtYWlsIjoiZW1haWwtMjQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTR9.vxnODsyY9D1mzH1kTC8tIy7tpnMeZSwRliCDZCL0F8k
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/fc6f69d4-d54d-4e7e-b4a4-62514245584a/apps/6d47ab8b-d903-4984-8ace-74b619eac462" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NyIsImVtYWlsIjoiZW1haWwtMjQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTR9.vxnODsyY9D1mzH1kTC8tIy7tpnMeZSwRliCDZCL0F8k" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "fc6f69d4-d54d-4e7e-b4a4-62514245584a",
    "url": "/v2/routes/fc6f69d4-d54d-4e7e-b4a4-62514245584a",
    "created_at": "2015-09-30T23:30:54Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-9",
    "path": "",
    "domain_guid": "85a1bacc-bd8b-493b-b213-44b1edf5f95c",
    "space_guid": "e1147f3d-2955-4ff1-ba24-fe42c28f530d",
    "service_instance_guid": null,
    "domain_url": "/v2/domains/85a1bacc-bd8b-493b-b213-44b1edf5f95c",
    "space_url": "/v2/spaces/e1147f3d-2955-4ff1-ba24-fe42c28f530d",
    "apps_url": "/v2/routes/fc6f69d4-d54d-4e7e-b4a4-62514245584a/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 233c6080-9cd3-4871-9fb0-ba739b96c61f
Content-Length: 620
X-Content-Type-Options: nosniff