Associate Route with the App
PUT /v2/apps/:guid/routes/:route_guid
Request
Route
PUT /v2/apps/09b8f496-21e2-4054-9006-313e4df0d88f/routes/662e9679-6a03-4f8f-9c73-dcf3c9f9c4ee
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/09b8f496-21e2-4054-9006-313e4df0d88f/routes/662e9679-6a03-4f8f-9c73-dcf3c9f9c4ee" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NyIsImVtYWlsIjoiZW1haWwtMjE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTd9.kpL3qg_IZPHDh8Xu4IpLJ87KFB1rNKhqF_uqvmN8qb8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "09b8f496-21e2-4054-9006-313e4df0d88f",
"url": "/v2/apps/09b8f496-21e2-4054-9006-313e4df0d88f",
"created_at": "2015-03-05T19:15:56Z",
"updated_at": "2015-03-05T19:15:56Z"
},
"entity": {
"name": "name-1034",
"production": false,
"space_guid": "95efcb46-268c-448c-a4ac-e081cd052278",
"stack_guid": "333c4d98-413e-4538-8388-fc2e98077b64",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "acc6434b-bce6-46ca-a88b-2c4d58ca714b",
"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-05T19:15:56Z",
"detected_start_command": "",
"space_url": "/v2/spaces/95efcb46-268c-448c-a4ac-e081cd052278",
"stack_url": "/v2/stacks/333c4d98-413e-4538-8388-fc2e98077b64",
"events_url": "/v2/apps/09b8f496-21e2-4054-9006-313e4df0d88f/events",
"service_bindings_url": "/v2/apps/09b8f496-21e2-4054-9006-313e4df0d88f/service_bindings",
"routes_url": "/v2/apps/09b8f496-21e2-4054-9006-313e4df0d88f/routes"
}
}
Headers