Associate Route with the App
PUT /v2/apps/:guid/routes/:route_guid
Request
Route
PUT /v2/apps/6242c593-98cd-4556-af86-d5c5ac55e194/routes/33e43ef1-b370-4db8-805d-e9c1736575c0
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/6242c593-98cd-4556-af86-d5c5ac55e194/routes/33e43ef1-b370-4db8-805d-e9c1736575c0" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OSIsImVtYWlsIjoiZW1haWwtMjUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTl9.oBtaqQe_4r1PhEFsfwEJ6Zy4RzbQ543LFQ62uikvxqc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "6242c593-98cd-4556-af86-d5c5ac55e194",
"url": "/v2/apps/6242c593-98cd-4556-af86-d5c5ac55e194",
"created_at": "2015-04-07T19:11:59Z",
"updated_at": "2015-04-07T19:11:59Z"
},
"entity": {
"name": "name-1921",
"production": false,
"space_guid": "8c59a557-c03b-4b61-b0cc-95747c097cb7",
"stack_guid": "e0029c06-adc6-41af-9496-818abc5cc570",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "2a3ae422-f318-4d43-b67d-c7dd4972ad1d",
"command": null,
"console": false,
"debug": null,
"staging_task_id": null,
"package_state": "PENDING",
"health_check_type": "port",
"health_check_timeout": null,
"staging_failed_reason": null,
"diego": false,
"docker_image": null,
"package_updated_at": "2015-04-07T19:11:59Z",
"detected_start_command": "",
"space_url": "/v2/spaces/8c59a557-c03b-4b61-b0cc-95747c097cb7",
"stack_url": "/v2/stacks/e0029c06-adc6-41af-9496-818abc5cc570",
"events_url": "/v2/apps/6242c593-98cd-4556-af86-d5c5ac55e194/events",
"service_bindings_url": "/v2/apps/6242c593-98cd-4556-af86-d5c5ac55e194/service_bindings",
"routes_url": "/v2/apps/6242c593-98cd-4556-af86-d5c5ac55e194/routes"
}
}
Headers