Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
guid
|
The guid of the route.
|
|
|
|
Request
Headers
Route
PUT /v2/routes/3c0374cd-0996-4f92-9bf9-b4629886475a/apps/2bc0a964-cbc6-4f23-81ac-01963903e8d8
cURL
curl "https://api.[your-domain.com]/v2/routes/3c0374cd-0996-4f92-9bf9-b4629886475a/apps/2bc0a964-cbc6-4f23-81ac-01963903e8d8" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkzIiwiZW1haWwiOiJlbWFpbC02NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyOTkwODY5fQ.QZLgO5ZQO-rR78xtJcFrCuFWf4rqMb3jyCa59w1YfXQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "3c0374cd-0996-4f92-9bf9-b4629886475a",
"url": "/v2/routes/3c0374cd-0996-4f92-9bf9-b4629886475a",
"created_at": "2015-01-27T19:14:29Z",
"updated_at": null
},
"entity": {
"host": "host-5",
"domain_guid": "a577bfd6-151e-40eb-8733-77c6c54fddae",
"space_guid": "88c1d9a5-08bc-41c4-8279-3d25b7205314",
"domain_url": "/v2/domains/a577bfd6-151e-40eb-8733-77c6c54fddae",
"space_url": "/v2/spaces/88c1d9a5-08bc-41c4-8279-3d25b7205314",
"apps_url": "/v2/routes/3c0374cd-0996-4f92-9bf9-b4629886475a/apps"
}
}