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-16a233d9-0ebd-45e6-b397-4a638a54f628/routes

Body

Name Description Default Valid Values Example Values
route_guid GUID of the route
{
  "route_guid": "d8298797-b850-47eb-80ca-493d59787c8b"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-16a233d9-0ebd-45e6-b397-4a638a54f628/routes" -d '{
  "route_guid": "d8298797-b850-47eb-80ca-493d59787c8b"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMiIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3OX0.opFS2nyfSQmIaOI3Vf4L1K5CEuz7sSRu2b2PKJgN9Z0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 5b842e58-77ea-42bc-ba70-ad274624f540
X-Content-Type-Options: nosniff