Home
Version 3
App Routes (Experimental) API

App Routes (Experimental) API

Map a Route

PUT /v3/apps/:guid/routes

Request

Route

PUT /v3/apps/guid-dac71b4b-5f18-41ae-aedf-f62a05a481ef/routes

Body

Name Description Default Valid Values Example Values
route_guid GUID of the route
{
  "route_guid": "9cf0271a-420f-4ae4-b227-16683db93573"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-dac71b4b-5f18-41ae-aedf-f62a05a481ef/routes" -d '{
  "route_guid": "9cf0271a-420f-4ae4-b227-16683db93573"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2OSIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTJ9.Z7QJxSsiwWdZuWQRHE8rPkvPylrA1NbW9KrZ_rzbP70" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 90d4fbf7-d214-4848-b789-877e575f6b01
X-Content-Type-Options: nosniff