Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Request
Route
PUT /v2/routes/8ed74329-ba8f-4291-a872-b42ed15a1647/apps/ceba7a73-8489-4095-b562-346a29c1a073
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/8ed74329-ba8f-4291-a872-b42ed15a1647/apps/ceba7a73-8489-4095-b562-346a29c1a073" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MCIsImVtYWlsIjoiZW1haWwtMTAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0MzJ9.VB9H8WIJerqC7chinYT_HmC5yKINAWr77tJZdG6Vb6w" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "8ed74329-ba8f-4291-a872-b42ed15a1647",
"url": "/v2/routes/8ed74329-ba8f-4291-a872-b42ed15a1647",
"created_at": "2016-03-14T22:30:32Z",
"updated_at": null
},
"entity": {
"host": "host-21",
"path": "",
"domain_guid": "bcc269c2-f3ef-493a-9ccf-083f4c26781b",
"space_guid": "677dcf25-1349-4179-b86b-c41bb595e9b7",
"service_instance_guid": null,
"port": 0,
"domain_url": "/v2/domains/bcc269c2-f3ef-493a-9ccf-083f4c26781b",
"space_url": "/v2/spaces/677dcf25-1349-4179-b86b-c41bb595e9b7",
"apps_url": "/v2/routes/8ed74329-ba8f-4291-a872-b42ed15a1647/apps",
"route_mappings_url": "/v2/routes/8ed74329-ba8f-4291-a872-b42ed15a1647/route_mappings"
}
}
Headers