Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Request
Route
PUT /v2/routes/818fb6b3-b0d5-46bb-8ff6-1613ee6647f1/apps/7eae34c9-274b-48f0-af2c-83241988bb2f
Parameters
Name |
Description |
Valid Values |
Example Values |
app_guid
|
The guid of the app
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
guid
|
The guid of the route.
|
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/routes/818fb6b3-b0d5-46bb-8ff6-1613ee6647f1/apps/7eae34c9-274b-48f0-af2c-83241988bb2f" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMCIsImVtYWlsIjoiZW1haWwtODVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4OH0.Gv2ZtlmrsO2c2MJi3xW-EGHuBleGLijyPXbzAIc6S4c" \
-H "Host: example.org" \
-H "Content-Type: application/json" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "818fb6b3-b0d5-46bb-8ff6-1613ee6647f1",
"url": "/v2/routes/818fb6b3-b0d5-46bb-8ff6-1613ee6647f1",
"created_at": "2016-06-08T16:41:28Z",
"updated_at": "2016-06-08T16:41:26Z"
},
"entity": {
"host": "host-9",
"path": "",
"domain_guid": "2cc499d9-b046-42a4-a08b-c86801ea2fea",
"space_guid": "de0208cd-e77e-493b-9ec4-52a47b453778",
"service_instance_guid": null,
"port": null,
"domain_url": "/v2/shared_domains/2cc499d9-b046-42a4-a08b-c86801ea2fea",
"space_url": "/v2/spaces/de0208cd-e77e-493b-9ec4-52a47b453778",
"apps_url": "/v2/routes/818fb6b3-b0d5-46bb-8ff6-1613ee6647f1/apps",
"route_mappings_url": "/v2/routes/818fb6b3-b0d5-46bb-8ff6-1613ee6647f1/route_mappings"
}
}
Headers