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

Route

DELETE /v2/routes/a7f678aa-be0a-4c71-b1cc-e12e54fb741f/apps/139663c2-d1f3-4f1e-885a-c3c22221ba42

cURL

curl "https://api.[your-domain.com]/v2/routes/a7f678aa-be0a-4c71-b1cc-e12e54fb741f/apps/139663c2-d1f3-4f1e-885a-c3c22221ba42" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkzIiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTM0fQ.cn7BhrkCSdgGoPohJ8lRsvqhl-h89O9J2wfgyZicnus" \
	-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: 9f400468-6602-4104-9d9d-ba462e4d4249
Content-Length: 574
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "a7f678aa-be0a-4c71-b1cc-e12e54fb741f",
    "url": "/v2/routes/a7f678aa-be0a-4c71-b1cc-e12e54fb741f",
    "created_at": "2015-01-20T01:52:14+00:00",
    "updated_at": null
  },
  "entity": {
    "host": "host-9",
    "domain_guid": "25214f86-3af8-4f4b-804d-c81495f16862",
    "space_guid": "4f542d2d-2e41-40fc-9ed9-51e7f3bcf5dc",
    "domain_url": "/v2/domains/25214f86-3af8-4f4b-804d-c81495f16862",
    "space_url": "/v2/spaces/4f542d2d-2e41-40fc-9ed9-51e7f3bcf5dc",
    "apps_url": "/v2/routes/a7f678aa-be0a-4c71-b1cc-e12e54fb741f/apps"
  }
}