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

Route

DELETE /v2/routes/8db8792d-0fb9-430d-bdd2-fe66cdfa618a/apps/23470817-575d-4203-a83b-086ed252bdc8

cURL

curl "https://api.[your-domain.com]/v2/routes/8db8792d-0fb9-430d-bdd2-fe66cdfa618a/apps/23470817-575d-4203-a83b-086ed252bdc8" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5OCIsImVtYWlsIjoiZW1haWwtMjIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTR9.drewwZ-IX3phnCtV6sbasH5Y5RYglg5C5CXjLiza21k" \
	-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: d170cbd1-e63e-4c81-aed3-516bc7291c25
Content-Length: 575
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "8db8792d-0fb9-430d-bdd2-fe66cdfa618a",
    "url": "/v2/routes/8db8792d-0fb9-430d-bdd2-fe66cdfa618a",
    "created_at": "2014-11-13T23:38:34+00:00",
    "updated_at": null
  },
  "entity": {
    "host": "host-17",
    "domain_guid": "29eb351c-5610-48cb-9a9c-69d85af2c3ac",
    "space_guid": "ffc78cfe-c759-4880-aff5-8ae381509a1c",
    "domain_url": "/v2/domains/29eb351c-5610-48cb-9a9c-69d85af2c3ac",
    "space_url": "/v2/spaces/ffc78cfe-c759-4880-aff5-8ae381509a1c",
    "apps_url": "/v2/routes/8db8792d-0fb9-430d-bdd2-fe66cdfa618a/apps"
  }
}