Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/0036e3a0-ec99-4642-8d8d-78beb220f213/routes/79651056-7344-445a-abf4-4c97bb1d1c09

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDl9.zteGEnkOqG_RdbF234d9SCSKbVAFYS8w094-YxirfMc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/0036e3a0-ec99-4642-8d8d-78beb220f213/routes/79651056-7344-445a-abf4-4c97bb1d1c09" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDl9.zteGEnkOqG_RdbF234d9SCSKbVAFYS8w094-YxirfMc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0036e3a0-ec99-4642-8d8d-78beb220f213",
    "url": "/v2/apps/0036e3a0-ec99-4642-8d8d-78beb220f213",
    "created_at": "2015-10-15T23:52:29Z",
    "updated_at": "2015-10-15T23:52:29Z"
  },
  "entity": {
    "name": "name-1669",
    "production": false,
    "space_guid": "12d184c1-f3f8-4a0b-8e9b-3179b593db44",
    "stack_guid": "f72b6709-64a3-4808-9756-a5615ce679ff",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "148cd714-1307-4687-b3b1-c4831153e2cc",
    "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,
    "staging_failed_description": null,
    "diego": false,
    "docker_image": null,
    "package_updated_at": "2015-10-15T23:52:29Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/12d184c1-f3f8-4a0b-8e9b-3179b593db44",
    "stack_url": "/v2/stacks/f72b6709-64a3-4808-9756-a5615ce679ff",
    "events_url": "/v2/apps/0036e3a0-ec99-4642-8d8d-78beb220f213/events",
    "service_bindings_url": "/v2/apps/0036e3a0-ec99-4642-8d8d-78beb220f213/service_bindings",
    "routes_url": "/v2/apps/0036e3a0-ec99-4642-8d8d-78beb220f213/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 87d1740e-6f3a-4b9a-99d4-7fbc738562e1
Content-Length: 1517
X-Content-Type-Options: nosniff