Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/b00cd3b8-d3e3-46ab-a6e4-4e0a2f0fc963/apps/f8a98649-2e77-4f98-bd96-7fdf134c1e35

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

cURL

curl "https://api.[your-domain.com]/v2/routes/b00cd3b8-d3e3-46ab-a6e4-4e0a2f0fc963/apps/f8a98649-2e77-4f98-bd96-7fdf134c1e35" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MiIsImVtYWlsIjoiZW1haWwtMTg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1Mzl9.kmaJ9Gqqletxiwz6wox3U8Gq5YSg_7XJuiX0nSfymeU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b00cd3b8-d3e3-46ab-a6e4-4e0a2f0fc963",
    "url": "/v2/routes/b00cd3b8-d3e3-46ab-a6e4-4e0a2f0fc963",
    "created_at": "2015-09-11T18:38:59Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-16",
    "path": "",
    "domain_guid": "9ac20cdb-763f-4ef8-a178-e2eec53963fa",
    "space_guid": "49d69566-6c1c-4c68-a42c-a0aea381b1ba",
    "service_instance_guid": "8c39ca28-bf41-40f5-b2b5-095f5c98061d",
    "domain_url": "/v2/domains/9ac20cdb-763f-4ef8-a178-e2eec53963fa",
    "space_url": "/v2/spaces/49d69566-6c1c-4c68-a42c-a0aea381b1ba",
    "service_instance_url": "/v2/service_instances/8c39ca28-bf41-40f5-b2b5-095f5c98061d",
    "apps_url": "/v2/routes/b00cd3b8-d3e3-46ab-a6e4-4e0a2f0fc963/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 869c1bf1-ef69-4697-9184-0f9ac820b6f0
Content-Length: 745
X-Content-Type-Options: nosniff