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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDl9.wLRnGWvOyO6y-8m0gRMPHgL0gaC1WwldnhDJnpg17m0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/routes/7f71df89-c98b-48c8-96db-695cf3bff8a7/apps/7f45c325-58f5-4e84-8959-093cddccceab

cURL

curl "https://api.[your-domain.com]/v2/routes/7f71df89-c98b-48c8-96db-695cf3bff8a7/apps/7f45c325-58f5-4e84-8959-093cddccceab" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDl9.wLRnGWvOyO6y-8m0gRMPHgL0gaC1WwldnhDJnpg17m0" \
	-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: 5cb2bb4e-a061-4d53-a342-a35a4f2971d0
Content-Length: 570
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "7f71df89-c98b-48c8-96db-695cf3bff8a7",
    "url": "/v2/routes/7f71df89-c98b-48c8-96db-695cf3bff8a7",
    "created_at": "2015-02-13T22:35:09Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-19",
    "domain_guid": "de1e6dd7-65aa-46c6-b794-ef986a17ad61",
    "space_guid": "81809920-ba9b-4b48-bd3e-ebba35cac0d3",
    "domain_url": "/v2/domains/de1e6dd7-65aa-46c6-b794-ef986a17ad61",
    "space_url": "/v2/spaces/81809920-ba9b-4b48-bd3e-ebba35cac0d3",
    "apps_url": "/v2/routes/7f71df89-c98b-48c8-96db-695cf3bff8a7/apps"
  }
}