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-cb3fe701-9416-4f2f-9d6d-96ce287fb688/routes

Parameters

Name Description Valid Values Example Values
route_guid GUID of the route

Body

Name Description Default Valid Values Example Values
{
  "route_guid": "912ffdae-3382-4ca8-81ee-dcbbad52a100"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MiIsImVtYWlsIjoiZW1haWwtMjA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NzF9.HKblcZddgrwAmrUvVoD-RyINQOfjFZepf6OZF6H1TQE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-cb3fe701-9416-4f2f-9d6d-96ce287fb688/routes" -d '{
  "route_guid": "912ffdae-3382-4ca8-81ee-dcbbad52a100"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MiIsImVtYWlsIjoiZW1haWwtMjA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NzF9.HKblcZddgrwAmrUvVoD-RyINQOfjFZepf6OZF6H1TQE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: f06cbe0e-91e3-435a-b85d-d44af79952b2
X-Content-Type-Options: nosniff