Home
Version 3
App Routes (Experimental) API

App Routes (Experimental) API

Add a Route

PUT /v3/apps/:guid/routes

Request

Route

PUT /v3/apps/guid-bbc6df6d-28ee-4e37-8e34-6e16fdb72b87/routes

Parameters

Name Description Valid Values Example Values
route_guid GUID of the route

Body

Name Description Default Valid Values Example Values
{
  "route_guid": "6c003485-b767-450d-80dc-8ff39246dea7"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-bbc6df6d-28ee-4e37-8e34-6e16fdb72b87/routes" -d '{
  "route_guid": "6c003485-b767-450d-80dc-8ff39246dea7"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MCIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4Njl9.kwDVyrWas7vXNR77rntUJhyCgY5t2kO780Az06SBHjw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 017dc2fa-8bec-453f-b96e-e1c27e73d6d1
X-Content-Type-Options: nosniff