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/8b787ff5-a3f5-4bf6-b039-30e25eb932e8/apps/588524aa-3cd6-4daf-b513-a6aeba65205d
cURL
curl "https://api.[your-domain.com]/v2/routes/8b787ff5-a3f5-4bf6-b039-30e25eb932e8/apps/588524aa-3cd6-4daf-b513-a6aeba65205d" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk0IiwiZW1haWwiOiJlbWFpbC02NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTM0fQ.5S4934BWJPkZq1yeYMEca6BYwQX6eegfxUWDAHwign0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "8b787ff5-a3f5-4bf6-b039-30e25eb932e8",
"url": "/v2/routes/8b787ff5-a3f5-4bf6-b039-30e25eb932e8",
"created_at": "2015-01-20T01:52:14+00:00",
"updated_at": null
},
"entity": {
"host": "host-10",
"domain_guid": "68ce323e-dfb7-4dc2-8fc3-07dd781a9eaa",
"space_guid": "c2135d09-c3e6-4d62-aa87-9c7f6f1f9e47",
"domain_url": "/v2/domains/68ce323e-dfb7-4dc2-8fc3-07dd781a9eaa",
"space_url": "/v2/spaces/c2135d09-c3e6-4d62-aa87-9c7f6f1f9e47",
"apps_url": "/v2/routes/8b787ff5-a3f5-4bf6-b039-30e25eb932e8/apps"
}
}