Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/59d86f1a-3f60-4c25-86e7-bac007a1eed8/apps/37f363b1-4d68-4fd1-b0b8-bf0b45751c08

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

cURL

curl "https://api.[your-domain.com]/v2/routes/59d86f1a-3f60-4c25-86e7-bac007a1eed8/apps/37f363b1-4d68-4fd1-b0b8-bf0b45751c08" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MTV9.TlhCGo5KUQVxd6eseB0Di7mbKUBOykojoJifAtgTVDs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "59d86f1a-3f60-4c25-86e7-bac007a1eed8",
    "url": "/v2/routes/59d86f1a-3f60-4c25-86e7-bac007a1eed8",
    "created_at": "2015-08-31T21:50:15Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-18",
    "path": "",
    "domain_guid": "2ab6bd8d-eddb-46a6-9d91-d39e6bfe47a0",
    "space_guid": "37f69931-e952-4eed-8ffe-d8941dd83ba2",
    "service_instance_guid": "83d200d4-6855-4321-8127-8e5180b56e91",
    "domain_url": "/v2/domains/2ab6bd8d-eddb-46a6-9d91-d39e6bfe47a0",
    "space_url": "/v2/spaces/37f69931-e952-4eed-8ffe-d8941dd83ba2",
    "service_instance_url": "/v2/service_instances/83d200d4-6855-4321-8127-8e5180b56e91",
    "apps_url": "/v2/routes/59d86f1a-3f60-4c25-86e7-bac007a1eed8/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0eee2579-f729-4f80-bef0-575a91d89374
Content-Length: 745
X-Content-Type-Options: nosniff