Associate Route with the App
PUT /v2/apps/:guid/routes/:route_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Request
Headers
Route
PUT /v2/apps/547f6702-4714-470e-8ae9-ad2e9bcefa44/routes/dba7eec8-5c04-4510-a5aa-62871f957a52
cURL
curl "https://api.[your-domain.com]/v2/apps/547f6702-4714-470e-8ae9-ad2e9bcefa44/routes/dba7eec8-5c04-4510-a5aa-62871f957a52" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOCIsImVtYWlsIjoiZW1haWwtMjMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDZ9.FvXvNtNZhPerZz4jO7pwksQziKohIYW_T3g9jtDv_j0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "547f6702-4714-470e-8ae9-ad2e9bcefa44",
"url": "/v2/apps/547f6702-4714-470e-8ae9-ad2e9bcefa44",
"created_at": "2015-02-13T22:35:06Z",
"updated_at": "2015-02-13T22:35:06Z"
},
"entity": {
"name": "name-1883",
"production": false,
"space_guid": "493a61cd-4187-47cd-ba12-99f09eb67e2a",
"stack_guid": "cc68702a-35f3-40bf-8bb7-1fc22920a2ab",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "f50b0a20-401d-4288-b945-28fb8a6e8117",
"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-02-13T22:35:06Z",
"detected_start_command": "",
"space_url": "/v2/spaces/493a61cd-4187-47cd-ba12-99f09eb67e2a",
"stack_url": "/v2/stacks/cc68702a-35f3-40bf-8bb7-1fc22920a2ab",
"events_url": "/v2/apps/547f6702-4714-470e-8ae9-ad2e9bcefa44/events",
"service_bindings_url": "/v2/apps/547f6702-4714-470e-8ae9-ad2e9bcefa44/service_bindings",
"routes_url": "/v2/apps/547f6702-4714-470e-8ae9-ad2e9bcefa44/routes"
}
}