Remove Route from the App
DELETE /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
DELETE /v2/apps/21b556bf-b741-418d-a2e0-1d6266bc494b/routes/4889737a-90b7-4884-9d49-dc4619e784ac
cURL
curl "https://api.[your-domain.com]/v2/apps/21b556bf-b741-418d-a2e0-1d6266bc494b/routes/4889737a-90b7-4884-9d49-dc4619e784ac" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNyIsImVtYWlsIjoiZW1haWwtMjMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDZ9.atErbm45TMxBQ7JBR4zJL4HZ0Z6WyeL_aIxh-3hqztY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "21b556bf-b741-418d-a2e0-1d6266bc494b",
"url": "/v2/apps/21b556bf-b741-418d-a2e0-1d6266bc494b",
"created_at": "2015-02-13T22:35:05Z",
"updated_at": "2015-02-13T22:35:05Z"
},
"entity": {
"name": "name-1868",
"production": false,
"space_guid": "5096574d-6f5e-4db5-92c8-739dbdb6ac35",
"stack_guid": "b7ae2d8d-5384-48aa-84bd-ee7b4f708176",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "2ce33cbf-68fa-4c4b-8df0-2bcc865e2b69",
"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:05Z",
"detected_start_command": "",
"space_url": "/v2/spaces/5096574d-6f5e-4db5-92c8-739dbdb6ac35",
"stack_url": "/v2/stacks/b7ae2d8d-5384-48aa-84bd-ee7b4f708176",
"events_url": "/v2/apps/21b556bf-b741-418d-a2e0-1d6266bc494b/events",
"service_bindings_url": "/v2/apps/21b556bf-b741-418d-a2e0-1d6266bc494b/service_bindings",
"routes_url": "/v2/apps/21b556bf-b741-418d-a2e0-1d6266bc494b/routes"
}
}