Associate App with the Route
PUT /v2/routes/:guid/apps/:app_guid
Request
Route
PUT /v2/routes/2a16a7a1-18c6-4203-8008-6e728f877ff1/apps/4bf601f4-6a22-40ed-b32c-66c6c078bd23
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/2a16a7a1-18c6-4203-8008-6e728f877ff1/apps/4bf601f4-6a22-40ed-b32c-66c6c078bd23" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNyIsImVtYWlsIjoiZW1haWwtMTQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDd9.VWSBFZWTEpH4gj8T_NrQ3l9sSsyJ-Ufl_LGRVn8niTc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "2a16a7a1-18c6-4203-8008-6e728f877ff1",
"url": "/v2/routes/2a16a7a1-18c6-4203-8008-6e728f877ff1",
"created_at": "2015-10-15T23:52:27Z",
"updated_at": null
},
"entity": {
"host": "host-4",
"path": "",
"domain_guid": "8b41a5ea-e7b5-43bd-b22f-787f06de44af",
"space_guid": "3cddad8a-23f5-441c-a89c-42402f3d5d18",
"service_instance_guid": null,
"port": 0,
"domain_url": "/v2/domains/8b41a5ea-e7b5-43bd-b22f-787f06de44af",
"space_url": "/v2/spaces/3cddad8a-23f5-441c-a89c-42402f3d5d18",
"apps_url": "/v2/routes/2a16a7a1-18c6-4203-8008-6e728f877ff1/apps"
}
}
Headers