Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/70a7a454-cfff-4bf6-bdb4-c972b75e434e/routes/92a62e13-f534-48ec-9416-12fbf3d97a02

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjYwMH0.DB1KFxMQOowYWGrdzbYoWtyOQtNzh_l24JvtkEjSWMY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/70a7a454-cfff-4bf6-bdb4-c972b75e434e/routes/92a62e13-f534-48ec-9416-12fbf3d97a02" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjYwMH0.DB1KFxMQOowYWGrdzbYoWtyOQtNzh_l24JvtkEjSWMY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "70a7a454-cfff-4bf6-bdb4-c972b75e434e",
    "url": "/v2/apps/70a7a454-cfff-4bf6-bdb4-c972b75e434e",
    "created_at": "2015-08-31T21:50:00Z",
    "updated_at": "2015-08-31T21:50:00Z"
  },
  "entity": {
    "name": "name-436",
    "production": false,
    "space_guid": "25a1cad6-80a4-4e56-a8b4-7fa0bfaa67d3",
    "stack_guid": "92903028-221e-4d6d-8d15-bcffc9be2c1d",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "57a3e235-1adb-40c1-a848-07d5fd9b2a27",
    "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-08-31T21:50:00Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/25a1cad6-80a4-4e56-a8b4-7fa0bfaa67d3",
    "stack_url": "/v2/stacks/92903028-221e-4d6d-8d15-bcffc9be2c1d",
    "events_url": "/v2/apps/70a7a454-cfff-4bf6-bdb4-c972b75e434e/events",
    "service_bindings_url": "/v2/apps/70a7a454-cfff-4bf6-bdb4-c972b75e434e/service_bindings",
    "routes_url": "/v2/apps/70a7a454-cfff-4bf6-bdb4-c972b75e434e/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 094b03b5-5ba2-49ab-b85a-aaf5a3d76a63
Content-Length: 1516
X-Content-Type-Options: nosniff