Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Request
Route
PUT /v2/routes/77b21c8a-1d01-4535-95d6-ccbffe8a2723/apps/7b02824c-304e-41ae-b1eb-b7c73684bc66
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/77b21c8a-1d01-4535-95d6-ccbffe8a2723/apps/7b02824c-304e-41ae-b1eb-b7c73684bc66" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MCIsImVtYWlsIjoiZW1haWwtMjUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MTV9.zNqfE8hqwaAzLuhM8P-UNzsxasqGJRpk_O1QCN_pLsk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "77b21c8a-1d01-4535-95d6-ccbffe8a2723",
"url": "/v2/routes/77b21c8a-1d01-4535-95d6-ccbffe8a2723",
"created_at": "2015-08-31T21:50:15Z",
"updated_at": null
},
"entity": {
"host": "host-19",
"path": "",
"domain_guid": "b80ba3cd-562c-4858-a20b-b542aed38e76",
"space_guid": "13278228-7092-4135-ba25-aa25c15e1228",
"service_instance_guid": "7ceb08a0-ce30-44ae-b98a-84deeef0b55a",
"domain_url": "/v2/domains/b80ba3cd-562c-4858-a20b-b542aed38e76",
"space_url": "/v2/spaces/13278228-7092-4135-ba25-aa25c15e1228",
"service_instance_url": "/v2/service_instances/7ceb08a0-ce30-44ae-b98a-84deeef0b55a",
"apps_url": "/v2/routes/77b21c8a-1d01-4535-95d6-ccbffe8a2723/apps"
}
}
Headers