Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Request
Route
PUT /v2/routes/03dc1161-0699-48b0-a21d-660770400435/apps/f93c6f86-114e-4bbd-8163-1cc9d060d009
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/03dc1161-0699-48b0-a21d-660770400435/apps/f93c6f86-114e-4bbd-8163-1cc9d060d009" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MyIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDJ9.AnJYzUEdY3V3rD4jSZG9eiqvWTGlGJ1pjunVgNbNlOs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "03dc1161-0699-48b0-a21d-660770400435",
"url": "/v2/routes/03dc1161-0699-48b0-a21d-660770400435",
"created_at": "2016-04-16T01:24:02Z",
"updated_at": null
},
"entity": {
"host": "host-25",
"path": "",
"domain_guid": "797857ef-deab-4a0d-a98b-0511dc529119",
"space_guid": "011bffb7-5efc-42e0-8c41-f946540be485",
"service_instance_guid": null,
"port": null,
"domain_url": "/v2/domains/797857ef-deab-4a0d-a98b-0511dc529119",
"space_url": "/v2/spaces/011bffb7-5efc-42e0-8c41-f946540be485",
"apps_url": "/v2/routes/03dc1161-0699-48b0-a21d-660770400435/apps",
"route_mappings_url": "/v2/routes/03dc1161-0699-48b0-a21d-660770400435/route_mappings"
}
}
Headers