Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Request
Route
PUT /v2/routes/b1b30135-ac98-446e-aee8-48bb5cda0bf1/apps/ef9ddb10-f7db-4f85-8b04-1950fe08bbad
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/b1b30135-ac98-446e-aee8-48bb5cda0bf1/apps/ef9ddb10-f7db-4f85-8b04-1950fe08bbad" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OSIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1MzZ9.Rkm0FicEUFGKmsAAGk3A6ZS6yErW3Q2GA6eyphPzQ-c" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "b1b30135-ac98-446e-aee8-48bb5cda0bf1",
"url": "/v2/routes/b1b30135-ac98-446e-aee8-48bb5cda0bf1",
"created_at": "2015-11-30T23:38:56Z",
"updated_at": null
},
"entity": {
"host": "host-21",
"path": "",
"domain_guid": "d6833723-9bee-4890-b599-e1c3e50a85c3",
"space_guid": "3e12f626-026f-4a07-aef7-bb4b5cd35cca",
"service_instance_guid": null,
"port": 0,
"domain_url": "/v2/domains/d6833723-9bee-4890-b599-e1c3e50a85c3",
"space_url": "/v2/spaces/3e12f626-026f-4a07-aef7-bb4b5cd35cca",
"apps_url": "/v2/routes/b1b30135-ac98-446e-aee8-48bb5cda0bf1/apps"
}
}
Headers