Associate Route with the App
PUT /v2/apps/:guid/routes/:route_guid
Request
Route
PUT /v2/apps/2cd5af6a-2ecd-4ffe-bcc2-251b31210ba1/routes/3d01e6b2-aa68-48af-8d2b-34a9e711ae49
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/2cd5af6a-2ecd-4ffe-bcc2-251b31210ba1/routes/3d01e6b2-aa68-48af-8d2b-34a9e711ae49" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMCIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk2Mn0.xf0Ukfgb61r11-HD3hLlZNdDAg0BSQ-RVJjc1-drNb0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "2cd5af6a-2ecd-4ffe-bcc2-251b31210ba1",
"url": "/v2/apps/2cd5af6a-2ecd-4ffe-bcc2-251b31210ba1",
"created_at": "2015-03-18T22:52:42Z",
"updated_at": "2015-03-18T22:52:42Z"
},
"entity": {
"name": "name-496",
"production": false,
"space_guid": "152089c0-8370-4436-a557-80e2d88e38ff",
"stack_guid": "d97db0ae-a9b8-4bef-8af8-4c9f2793f2d8",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "35033fc7-0e51-49c4-bed6-927e508fe21b",
"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-18T22:52:42Z",
"detected_start_command": "",
"space_url": "/v2/spaces/152089c0-8370-4436-a557-80e2d88e38ff",
"stack_url": "/v2/stacks/d97db0ae-a9b8-4bef-8af8-4c9f2793f2d8",
"events_url": "/v2/apps/2cd5af6a-2ecd-4ffe-bcc2-251b31210ba1/events",
"service_bindings_url": "/v2/apps/2cd5af6a-2ecd-4ffe-bcc2-251b31210ba1/service_bindings",
"routes_url": "/v2/apps/2cd5af6a-2ecd-4ffe-bcc2-251b31210ba1/routes"
}
}
Headers