Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/57f52dfa-6b61-4c74-9a86-2d742a19f286/apps/be772e1a-7293-4f78-9070-e5bcc939d572

Parameters

Name Description Valid Values Example Values
app_guid The guid of the app

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MCIsImVtYWlsIjoiZW1haWwtMjgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTl9.SytMOynnq8Q300QejTjGLRZ7EeN73F4i5n4WM8A4hj4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/57f52dfa-6b61-4c74-9a86-2d742a19f286/apps/be772e1a-7293-4f78-9070-e5bcc939d572" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MCIsImVtYWlsIjoiZW1haWwtMjgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTl9.SytMOynnq8Q300QejTjGLRZ7EeN73F4i5n4WM8A4hj4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "57f52dfa-6b61-4c74-9a86-2d742a19f286",
    "url": "/v2/routes/57f52dfa-6b61-4c74-9a86-2d742a19f286",
    "created_at": "2015-10-13T17:31:59Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-20",
    "path": "",
    "domain_guid": "b8a0db0f-4c89-4507-aee3-364bf2ab74bc",
    "space_guid": "330e7cbf-9af5-4282-b004-e18fe2126618",
    "service_instance_guid": null,
    "port": 0,
    "domain_url": "/v2/domains/b8a0db0f-4c89-4507-aee3-364bf2ab74bc",
    "space_url": "/v2/spaces/330e7cbf-9af5-4282-b004-e18fe2126618",
    "apps_url": "/v2/routes/57f52dfa-6b61-4c74-9a86-2d742a19f286/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 992a4846-c22e-419a-a7c8-c4c9e85259cc
Content-Length: 636
X-Content-Type-Options: nosniff