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-d4f88c9c-411a-4106-8169-415c19fbe343/routes

Body

Name Description Default Valid Values Example Values
route_guid GUID of the route
{
  "route_guid": "76ffa2c9-fa9c-42db-886c-0e343488f8be"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3MSIsImVtYWlsIjoiZW1haWwtMzM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NjZ9.jEBVLSHLsqcIPoP4kQ9U7vOBdIcMMm_1Birb-DCimT4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-d4f88c9c-411a-4106-8169-415c19fbe343/routes" -d '{
  "route_guid": "76ffa2c9-fa9c-42db-886c-0e343488f8be"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3MSIsImVtYWlsIjoiZW1haWwtMzM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NjZ9.jEBVLSHLsqcIPoP4kQ9U7vOBdIcMMm_1Birb-DCimT4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 85bd94c4-e92a-47b3-8e5b-cef9d0c63431
X-Content-Type-Options: nosniff