Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Request
Route
PUT /v2/routes/9f02f5e9-97c8-4790-8ac6-e25b60e63418/apps/13e0ef46-7bb3-4616-8940-06a029201301
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/9f02f5e9-97c8-4790-8ac6-e25b60e63418/apps/13e0ef46-7bb3-4616-8940-06a029201301" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NSIsImVtYWlsIjoiZW1haWwtMTkxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTB9.dAfqMN4_2dGgkszYjUxks-jtN5KlMoAxthFa-kXIomE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "9f02f5e9-97c8-4790-8ac6-e25b60e63418",
"url": "/v2/routes/9f02f5e9-97c8-4790-8ac6-e25b60e63418",
"created_at": "2015-12-22T18:28:10Z",
"updated_at": null
},
"entity": {
"host": "host-24",
"path": "",
"domain_guid": "451e5da5-195d-42be-8018-f789e42ec8d0",
"space_guid": "731350b2-5ed1-49ae-8fc9-0eb0889bb53e",
"service_instance_guid": null,
"port": 0,
"domain_url": "/v2/domains/451e5da5-195d-42be-8018-f789e42ec8d0",
"space_url": "/v2/spaces/731350b2-5ed1-49ae-8fc9-0eb0889bb53e",
"apps_url": "/v2/routes/9f02f5e9-97c8-4790-8ac6-e25b60e63418/apps"
}
}
Headers