Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/312e7b94-bf24-40cd-9542-3a1710ccb94e/routes/fa3365f1-18de-469b-bb3a-42ed68a60f52

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NiIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NjB9.EVfYSydZh4fVjD99rNIHH0Dj1K6rH5SWhGDL7T-yAgM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/312e7b94-bf24-40cd-9542-3a1710ccb94e/routes/fa3365f1-18de-469b-bb3a-42ed68a60f52" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NiIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NjB9.EVfYSydZh4fVjD99rNIHH0Dj1K6rH5SWhGDL7T-yAgM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "312e7b94-bf24-40cd-9542-3a1710ccb94e",
    "url": "/v2/apps/312e7b94-bf24-40cd-9542-3a1710ccb94e",
    "created_at": "2015-03-20T18:27:40Z",
    "updated_at": "2015-03-20T18:27:40Z"
  },
  "entity": {
    "name": "name-1605",
    "production": false,
    "space_guid": "5745f44a-232c-4a38-abd7-fc0a5235480d",
    "stack_guid": "b2d650b9-ff41-4f3c-ac9d-11e6d251e1c0",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "d8363193-d182-48cc-8b3c-d5307bcfa75d",
    "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-20T18:27:40Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/5745f44a-232c-4a38-abd7-fc0a5235480d",
    "stack_url": "/v2/stacks/b2d650b9-ff41-4f3c-ac9d-11e6d251e1c0",
    "events_url": "/v2/apps/312e7b94-bf24-40cd-9542-3a1710ccb94e/events",
    "service_bindings_url": "/v2/apps/312e7b94-bf24-40cd-9542-3a1710ccb94e/service_bindings",
    "routes_url": "/v2/apps/312e7b94-bf24-40cd-9542-3a1710ccb94e/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8ef262ef-edde-4b71-840a-ba029ed2eba0
Content-Length: 1363
X-Content-Type-Options: nosniff