Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
guid
|
The guid of the route.
|
|
|
|
Request
Headers
Route
PUT /v2/routes/826de55e-b5f5-4e4c-af1d-9a885643ebb3/apps/fdbd2c2c-6d4a-4512-ba22-c9267e4dd5ae
cURL
curl "https://api.[your-domain.com]/v2/routes/826de55e-b5f5-4e4c-af1d-9a885643ebb3/apps/fdbd2c2c-6d4a-4512-ba22-c9267e4dd5ae" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNTF9.5xV0ELmgpXgMJxJK7Yv0QW4GYb-7h2CTIL8UQbAR2Yo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "826de55e-b5f5-4e4c-af1d-9a885643ebb3",
"url": "/v2/routes/826de55e-b5f5-4e4c-af1d-9a885643ebb3",
"created_at": "2014-11-05T01:02:31+00:00",
"updated_at": null
},
"entity": {
"host": "host-18",
"domain_guid": "bdb02ed1-766f-4e45-9ff2-623de76b3a3d",
"space_guid": "f7060100-77f1-44a0-9d6b-cdc1e4cf6b2e",
"domain_url": "/v2/domains/bdb02ed1-766f-4e45-9ff2-623de76b3a3d",
"space_url": "/v2/spaces/f7060100-77f1-44a0-9d6b-cdc1e4cf6b2e",
"apps_url": "/v2/routes/826de55e-b5f5-4e4c-af1d-9a885643ebb3/apps"
}
}