Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Request
Route
PUT /v2/routes/4ab7edb8-d3af-4865-b783-8927dd562329/apps/2c215cf6-1265-47b9-83e6-28e6aa2ad101
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/4ab7edb8-d3af-4865-b783-8927dd562329/apps/2c215cf6-1265-47b9-83e6-28e6aa2ad101" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OCIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTR9.VKnM5M7BqPXzqom9I2H2ZHcxx_OGsS0F1uEiHtxgW74" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "4ab7edb8-d3af-4865-b783-8927dd562329",
"url": "/v2/routes/4ab7edb8-d3af-4865-b783-8927dd562329",
"created_at": "2015-09-30T23:30:54Z",
"updated_at": null
},
"entity": {
"host": "host-10",
"path": "",
"domain_guid": "f86aabf9-98f9-47c3-8c52-4e499e897492",
"space_guid": "5dcb2320-88f5-4b67-9e14-e29641f4aea6",
"service_instance_guid": null,
"domain_url": "/v2/domains/f86aabf9-98f9-47c3-8c52-4e499e897492",
"space_url": "/v2/spaces/5dcb2320-88f5-4b67-9e14-e29641f4aea6",
"apps_url": "/v2/routes/4ab7edb8-d3af-4865-b783-8927dd562329/apps"
}
}
Headers