Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/56e20efc-b413-4f54-a05d-af36b049e537/routes/a69e2269-fac4-46e2-aa20-ac885f153348

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwOCIsImVtYWlsIjoiZW1haWwtMjI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTR9.oywH3GMDFNA-Tnv_u6JuiCcK7Wga2OJ12mtMrBTybAw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/56e20efc-b413-4f54-a05d-af36b049e537/routes/a69e2269-fac4-46e2-aa20-ac885f153348" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwOCIsImVtYWlsIjoiZW1haWwtMjI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTR9.oywH3GMDFNA-Tnv_u6JuiCcK7Wga2OJ12mtMrBTybAw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "56e20efc-b413-4f54-a05d-af36b049e537",
    "url": "/v2/apps/56e20efc-b413-4f54-a05d-af36b049e537",
    "created_at": "2015-07-06T23:23:14Z",
    "updated_at": "2015-07-06T23:23:14Z"
  },
  "entity": {
    "name": "name-1891",
    "production": false,
    "space_guid": "3d9d2f01-bf2d-496a-878b-6453ca4c4fc5",
    "stack_guid": "d1990dc6-f947-4340-a66a-3fda9d122b53",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "3a920a81-49ed-4bbd-82b4-5592792a18e1",
    "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-07-06T23:23:14Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/3d9d2f01-bf2d-496a-878b-6453ca4c4fc5",
    "stack_url": "/v2/stacks/d1990dc6-f947-4340-a66a-3fda9d122b53",
    "events_url": "/v2/apps/56e20efc-b413-4f54-a05d-af36b049e537/events",
    "service_bindings_url": "/v2/apps/56e20efc-b413-4f54-a05d-af36b049e537/service_bindings",
    "routes_url": "/v2/apps/56e20efc-b413-4f54-a05d-af36b049e537/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cd451b89-5235-4f8b-a03b-c03c360805c1
Content-Length: 1517
X-Content-Type-Options: nosniff