Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Request
Route
PUT /v2/routes/1dd5151d-7ca7-45a5-9364-d90926e673ab/apps/f87e503d-378a-4182-8212-cfde397c4067
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/1dd5151d-7ca7-45a5-9364-d90926e673ab/apps/f87e503d-378a-4182-8212-cfde397c4067" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOCIsImVtYWlsIjoiZW1haWwtMTc0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzN9.UDYFvqadzoDeLUDiOH3UFUBGzyQ9GvFk4NUKoOHxbfE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1dd5151d-7ca7-45a5-9364-d90926e673ab",
"url": "/v2/routes/1dd5151d-7ca7-45a5-9364-d90926e673ab",
"created_at": "2016-01-19T19:41:13Z",
"updated_at": null
},
"entity": {
"host": "host-19",
"path": "",
"domain_guid": "ae3eb2a2-d25f-4bfb-872e-b92d07e31259",
"space_guid": "de16c384-a3d8-4354-b304-ec90a420d9bc",
"service_instance_guid": null,
"port": 0,
"domain_url": "/v2/domains/ae3eb2a2-d25f-4bfb-872e-b92d07e31259",
"space_url": "/v2/spaces/de16c384-a3d8-4354-b304-ec90a420d9bc",
"apps_url": "/v2/routes/1dd5151d-7ca7-45a5-9364-d90926e673ab/apps"
}
}
Headers