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-0643b20b-8e85-4cda-993d-de39ad9d05eb/routes

Body

Name Description Default Valid Values Example Values
route_guid GUID of the route
{
  "route_guid": "ed93b5e1-5113-4352-a2e7-950b65957ef5"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzOSIsImVtYWlsIjoiZW1haWwtMzA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTJ9.aazQEi_xENpHNCA9r-8XpbUKwruCPiNBiz6tOAiCsOs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-0643b20b-8e85-4cda-993d-de39ad9d05eb/routes" -d '{
  "route_guid": "ed93b5e1-5113-4352-a2e7-950b65957ef5"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzOSIsImVtYWlsIjoiZW1haWwtMzA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTJ9.aazQEi_xENpHNCA9r-8XpbUKwruCPiNBiz6tOAiCsOs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: ea9c24d8-7ba3-4da2-93bb-e38b864f370e
X-Content-Type-Options: nosniff