Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Fields

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMCIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzR9.a2un1ptNkzX0coxFxBwJ_j5Vh-bppLATVTv02q9-jIk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/routes/b958f7c4-9378-4720-a192-714e15ee0ceb/apps/e8021504-8e0b-4d68-a6b3-c7a462277129

cURL

curl "https://api.[your-domain.com]/v2/routes/b958f7c4-9378-4720-a192-714e15ee0ceb/apps/e8021504-8e0b-4d68-a6b3-c7a462277129" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMCIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzR9.a2un1ptNkzX0coxFxBwJ_j5Vh-bppLATVTv02q9-jIk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b7950270-43c5-4eb9-94c0-15ee29de112f
Content-Length: 575
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "b958f7c4-9378-4720-a192-714e15ee0ceb",
    "url": "/v2/routes/b958f7c4-9378-4720-a192-714e15ee0ceb",
    "created_at": "2014-12-24T01:39:34+00:00",
    "updated_at": null
  },
  "entity": {
    "host": "host-17",
    "domain_guid": "17778148-f54b-4464-baa4-81a97551dd3f",
    "space_guid": "dafcbb92-a6a7-4960-bbfc-00adb7a0bf8f",
    "domain_url": "/v2/domains/17778148-f54b-4464-baa4-81a97551dd3f",
    "space_url": "/v2/spaces/dafcbb92-a6a7-4960-bbfc-00adb7a0bf8f",
    "apps_url": "/v2/routes/b958f7c4-9378-4720-a192-714e15ee0ceb/apps"
  }
}