Home
Version 3
Routes API

Routes API

Remove App from the Route

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

Request

Route

DELETE /v2/routes/7e7592a4-ae64-4759-a937-89df7e2ac607/apps/a9a114bc-cf2d-4124-994f-4c9ede7298f4

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

cURL

curl "https://api.[your-domain.com]/v2/routes/7e7592a4-ae64-4759-a937-89df7e2ac607/apps/a9a114bc-cf2d-4124-994f-4c9ede7298f4" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDd9.Kjfd61lQIA5H9guTKPyi5uGwnyWd1GmXUM7B_n3BRjQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7e7592a4-ae64-4759-a937-89df7e2ac607",
    "url": "/v2/routes/7e7592a4-ae64-4759-a937-89df7e2ac607",
    "created_at": "2015-10-15T23:52:26Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-3",
    "path": "",
    "domain_guid": "9a02c7c0-0192-4d35-a618-8fc971330168",
    "space_guid": "d4a5e5ec-d62c-4b4f-8b0b-35034db701d7",
    "service_instance_guid": null,
    "port": 0,
    "domain_url": "/v2/domains/9a02c7c0-0192-4d35-a618-8fc971330168",
    "space_url": "/v2/spaces/d4a5e5ec-d62c-4b4f-8b0b-35034db701d7",
    "apps_url": "/v2/routes/7e7592a4-ae64-4759-a937-89df7e2ac607/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c70e8a41-9504-4539-9f92-461d1dd30972
Content-Length: 635
X-Content-Type-Options: nosniff