Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Request
Route
PUT /v2/routes/77b3a800-54d8-4ccc-b83a-38900b2569ae/apps/5bb26b44-d91e-4bc9-9caf-e67c5caf5c4d
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/77b3a800-54d8-4ccc-b83a-38900b2569ae/apps/5bb26b44-d91e-4bc9-9caf-e67c5caf5c4d" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OCIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MTd9.t7dy7GfAyeBNvRXjVfBwZnoAi3RJpGKeJQyYd8F_-rM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "77b3a800-54d8-4ccc-b83a-38900b2569ae",
"url": "/v2/routes/77b3a800-54d8-4ccc-b83a-38900b2569ae",
"created_at": "2016-01-26T22:20:17Z",
"updated_at": null
},
"entity": {
"host": "host-19",
"path": "",
"domain_guid": "c17f72cd-0b6c-408e-8594-3a83f1eef62c",
"space_guid": "fbc6ac19-c511-469a-97e4-b78afca09d35",
"service_instance_guid": null,
"port": 0,
"domain_url": "/v2/domains/c17f72cd-0b6c-408e-8594-3a83f1eef62c",
"space_url": "/v2/spaces/fbc6ac19-c511-469a-97e4-b78afca09d35",
"apps_url": "/v2/routes/77b3a800-54d8-4ccc-b83a-38900b2569ae/apps"
}
}
Headers