Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/2ecb13b3-3321-402a-9d39-eb8499a825de/apps/d7c59323-6872-4e53-b427-00f308caea96

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMyIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTJ9.qkYigzbKnYoLv35Eco4Vf0_-zUvZqRSmcd5RgaMjPm8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/2ecb13b3-3321-402a-9d39-eb8499a825de/apps/d7c59323-6872-4e53-b427-00f308caea96" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMyIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTJ9.qkYigzbKnYoLv35Eco4Vf0_-zUvZqRSmcd5RgaMjPm8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2ecb13b3-3321-402a-9d39-eb8499a825de",
    "url": "/v2/routes/2ecb13b3-3321-402a-9d39-eb8499a825de",
    "created_at": "2015-05-21T01:03:12Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-12",
    "path": "",
    "domain_guid": "af7e34b3-25df-4b69-989c-2c557fb5bcd4",
    "space_guid": "b9bcde53-e1d3-4a24-9bea-f1912cbe10f9",
    "domain_url": "/v2/domains/af7e34b3-25df-4b69-989c-2c557fb5bcd4",
    "space_url": "/v2/spaces/b9bcde53-e1d3-4a24-9bea-f1912cbe10f9",
    "apps_url": "/v2/routes/2ecb13b3-3321-402a-9d39-eb8499a825de/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b85317ce-e3c4-4629-80cb-905fbaac44e5
Content-Length: 586
X-Content-Type-Options: nosniff