Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/3509ca9c-a963-450d-98d1-b98d175e4101/routes/d397ceeb-3a8d-4bef-825c-ae1ff1dc041a

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU3IiwiZW1haWwiOiJlbWFpbC01N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk1fQ.2qHh1CWLFuuJMzUOT8eKgSVeaTqXDiN4nRS3OPBzHyk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/3509ca9c-a963-450d-98d1-b98d175e4101/routes/d397ceeb-3a8d-4bef-825c-ae1ff1dc041a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU3IiwiZW1haWwiOiJlbWFpbC01N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk1fQ.2qHh1CWLFuuJMzUOT8eKgSVeaTqXDiN4nRS3OPBzHyk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3509ca9c-a963-450d-98d1-b98d175e4101",
    "url": "/v2/apps/3509ca9c-a963-450d-98d1-b98d175e4101",
    "created_at": "2015-08-06T00:36:35Z",
    "updated_at": "2015-08-06T00:36:35Z"
  },
  "entity": {
    "name": "name-324",
    "production": false,
    "space_guid": "cd5bdc10-f7a3-405c-9bf5-8e0df3a78597",
    "stack_guid": "a7a4c54e-ede0-4801-bc34-80e61fe4a9b3",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "808709ea-5e8f-4320-974d-96f406128d5c",
    "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-06T00:36:35Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/cd5bdc10-f7a3-405c-9bf5-8e0df3a78597",
    "stack_url": "/v2/stacks/a7a4c54e-ede0-4801-bc34-80e61fe4a9b3",
    "events_url": "/v2/apps/3509ca9c-a963-450d-98d1-b98d175e4101/events",
    "service_bindings_url": "/v2/apps/3509ca9c-a963-450d-98d1-b98d175e4101/service_bindings",
    "routes_url": "/v2/apps/3509ca9c-a963-450d-98d1-b98d175e4101/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c879271d-fc8b-4eee-9fcd-9306fc96d463
Content-Length: 1516
X-Content-Type-Options: nosniff