Associate Route with the App
PUT /v2/apps/:guid/routes/:route_guid
Request
Route
PUT /v2/apps/1e6f8b13-1347-425c-9b9d-b14e226c621b/routes/2d6e4833-8c74-4954-a671-922e1fa0f727
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/1e6f8b13-1347-425c-9b9d-b14e226c621b/routes/2d6e4833-8c74-4954-a671-922e1fa0f727" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MyIsImVtYWlsIjoiZW1haWwtMjA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTJ9.4MzNU7cMsaOmGsz6JDpNhfPqA05m2O_prjJgp3YAPKM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1e6f8b13-1347-425c-9b9d-b14e226c621b",
"url": "/v2/apps/1e6f8b13-1347-425c-9b9d-b14e226c621b",
"created_at": "2015-03-10T23:11:52Z",
"updated_at": "2015-03-10T23:11:52Z"
},
"entity": {
"name": "name-895",
"production": false,
"space_guid": "45453c95-ae54-44de-8f30-b0944b16ea0f",
"stack_guid": "c5f95b3e-815b-4a7f-a868-2565d955ce33",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "bbae18e6-c81c-498f-ab4a-85464882f6e3",
"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-03-10T23:11:52Z",
"detected_start_command": "",
"space_url": "/v2/spaces/45453c95-ae54-44de-8f30-b0944b16ea0f",
"stack_url": "/v2/stacks/c5f95b3e-815b-4a7f-a868-2565d955ce33",
"events_url": "/v2/apps/1e6f8b13-1347-425c-9b9d-b14e226c621b/events",
"service_bindings_url": "/v2/apps/1e6f8b13-1347-425c-9b9d-b14e226c621b/service_bindings",
"routes_url": "/v2/apps/1e6f8b13-1347-425c-9b9d-b14e226c621b/routes"
}
}
Headers