Remove Route from the App
DELETE /v2/apps/:guid/routes/:route_guid
Request
Route
DELETE /v2/apps/06a550b9-5c64-4ee3-bfde-bb5aa0f560e8/routes/efc9401a-6d49-4ed7-9606-7618bb8ba874
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/06a550b9-5c64-4ee3-bfde-bb5aa0f560e8/routes/efc9401a-6d49-4ed7-9606-7618bb8ba874" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MiIsImVtYWlsIjoiZW1haWwtMjAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTJ9.9MbY98ZvgLrpLVsp866ymRE3qNDcesH7o7j2oIBJWCg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "06a550b9-5c64-4ee3-bfde-bb5aa0f560e8",
"url": "/v2/apps/06a550b9-5c64-4ee3-bfde-bb5aa0f560e8",
"created_at": "2015-03-10T23:11:51Z",
"updated_at": "2015-03-10T23:11:51Z"
},
"entity": {
"name": "name-875",
"production": false,
"space_guid": "64afa892-8c6a-413b-aa72-ce169ef12315",
"stack_guid": "22f7204f-b708-400a-bac4-61823ad8d796",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "12035fce-9ffa-4f21-965b-f5ade13d15fb",
"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/64afa892-8c6a-413b-aa72-ce169ef12315",
"stack_url": "/v2/stacks/22f7204f-b708-400a-bac4-61823ad8d796",
"events_url": "/v2/apps/06a550b9-5c64-4ee3-bfde-bb5aa0f560e8/events",
"service_bindings_url": "/v2/apps/06a550b9-5c64-4ee3-bfde-bb5aa0f560e8/service_bindings",
"routes_url": "/v2/apps/06a550b9-5c64-4ee3-bfde-bb5aa0f560e8/routes"
}
}
Headers