Home
Version 3
Apps API

Apps API

Remove Route from the App

DELETE /v2/apps/:guid/routes/:route_guid

Request

Route

DELETE /v2/apps/1f027611-95ac-42de-bb40-c29697dfd032/routes/1373e8eb-7556-4fe8-a9eb-3474892d8a9e

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOSIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDJ9.QiabYhcl6LYxZTjetweiSusJFBek8utRDlKnzcKl-CE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/1f027611-95ac-42de-bb40-c29697dfd032/routes/1373e8eb-7556-4fe8-a9eb-3474892d8a9e" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOSIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDJ9.QiabYhcl6LYxZTjetweiSusJFBek8utRDlKnzcKl-CE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1f027611-95ac-42de-bb40-c29697dfd032",
    "url": "/v2/apps/1f027611-95ac-42de-bb40-c29697dfd032",
    "created_at": "2015-04-15T00:55:42Z",
    "updated_at": "2015-04-15T00:55:42Z"
  },
  "entity": {
    "name": "name-1498",
    "production": false,
    "space_guid": "6bcaecf2-c8bd-4e0e-9e0c-6b9239d026ae",
    "stack_guid": "6dddee66-5958-4ee7-8060-21998ca23ced",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "30e51880-ca0c-4af2-b7ff-45c73a265ac3",
    "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-04-15T00:55:42Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/6bcaecf2-c8bd-4e0e-9e0c-6b9239d026ae",
    "stack_url": "/v2/stacks/6dddee66-5958-4ee7-8060-21998ca23ced",
    "events_url": "/v2/apps/1f027611-95ac-42de-bb40-c29697dfd032/events",
    "service_bindings_url": "/v2/apps/1f027611-95ac-42de-bb40-c29697dfd032/service_bindings",
    "routes_url": "/v2/apps/1f027611-95ac-42de-bb40-c29697dfd032/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5461ad4d-7b70-42a9-b780-dc4b209596d4
Content-Length: 1363
X-Content-Type-Options: nosniff