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

Route

DELETE /v2/routes/f5bc5f37-9483-4e1a-88eb-c45149be92c8/apps/a0f0cddc-b8ff-4863-b497-42fb77ae8c33

cURL

curl "https://api.[your-domain.com]/v2/routes/f5bc5f37-9483-4e1a-88eb-c45149be92c8/apps/a0f0cddc-b8ff-4863-b497-42fb77ae8c33" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NCIsImVtYWlsIjoiZW1haWwtMTI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjB9.J86WBrTgaqwdippZjDfHqyPEZvM6Pa3kYe12lF_x87M" \
	-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: bdefd780-a774-440b-819e-073c519bbb33
Content-Length: 574
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "f5bc5f37-9483-4e1a-88eb-c45149be92c8",
    "url": "/v2/routes/f5bc5f37-9483-4e1a-88eb-c45149be92c8",
    "created_at": "2014-11-24T19:32:40+00:00",
    "updated_at": null
  },
  "entity": {
    "host": "host-4",
    "domain_guid": "678e8ece-cc4e-456b-88ab-2e696396fdc8",
    "space_guid": "227a8874-6f44-4849-887d-a9ff90ac8e0c",
    "domain_url": "/v2/domains/678e8ece-cc4e-456b-88ab-2e696396fdc8",
    "space_url": "/v2/spaces/227a8874-6f44-4849-887d-a9ff90ac8e0c",
    "apps_url": "/v2/routes/f5bc5f37-9483-4e1a-88eb-c45149be92c8/apps"
  }
}