Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/5825a600-6185-4b00-88b6-5966da07e34e/routes/d3b3be11-169b-472e-b840-bdab5de87211

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOSIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTl9.8BWfKny9olG2pWCDuTvZnRkqSIAcC3D2ckb-jTWB8Q8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/5825a600-6185-4b00-88b6-5966da07e34e/routes/d3b3be11-169b-472e-b840-bdab5de87211" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOSIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTl9.8BWfKny9olG2pWCDuTvZnRkqSIAcC3D2ckb-jTWB8Q8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5825a600-6185-4b00-88b6-5966da07e34e",
    "url": "/v2/apps/5825a600-6185-4b00-88b6-5966da07e34e",
    "created_at": "2015-06-04T00:05:19Z",
    "updated_at": "2015-06-04T00:05:19Z"
  },
  "entity": {
    "name": "name-2071",
    "production": false,
    "space_guid": "0b267f12-2211-48cf-987d-c86a113ebac5",
    "stack_guid": "f20ca71f-a94c-4be4-920f-47be0159b3e8",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "526b041a-ffb6-41b3-b71e-d113795b7147",
    "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-06-04T00:05:19Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/0b267f12-2211-48cf-987d-c86a113ebac5",
    "stack_url": "/v2/stacks/f20ca71f-a94c-4be4-920f-47be0159b3e8",
    "events_url": "/v2/apps/5825a600-6185-4b00-88b6-5966da07e34e/events",
    "service_bindings_url": "/v2/apps/5825a600-6185-4b00-88b6-5966da07e34e/service_bindings",
    "routes_url": "/v2/apps/5825a600-6185-4b00-88b6-5966da07e34e/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 81125226-d847-4cde-a084-261393fc884f
Content-Length: 1477
X-Content-Type-Options: nosniff