Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/0984d49d-ff5e-4e19-8355-c5b6d792d386/routes/31a666e4-9c4a-415b-9ddd-db41f91a6b5e

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/0984d49d-ff5e-4e19-8355-c5b6d792d386/routes/31a666e4-9c4a-415b-9ddd-db41f91a6b5e" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NiIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUzM30.Ajbv7xgfNpTj6Ube329bcuV31RphfZhsP7FEriTVMtM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0984d49d-ff5e-4e19-8355-c5b6d792d386",
    "url": "/v2/apps/0984d49d-ff5e-4e19-8355-c5b6d792d386",
    "created_at": "2015-09-11T18:38:53Z",
    "updated_at": "2015-09-11T18:38:53Z"
  },
  "entity": {
    "name": "name-549",
    "production": false,
    "space_guid": "0929260f-7c03-41d9-9aa3-2b8603e48eed",
    "stack_guid": "4f32d224-4a34-4a19-a5f4-1e6efe7c8a1f",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "6c86212f-93b7-4f7f-97cc-cc2dd638e8eb",
    "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-09-11T18:38:53Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/0929260f-7c03-41d9-9aa3-2b8603e48eed",
    "stack_url": "/v2/stacks/4f32d224-4a34-4a19-a5f4-1e6efe7c8a1f",
    "events_url": "/v2/apps/0984d49d-ff5e-4e19-8355-c5b6d792d386/events",
    "service_bindings_url": "/v2/apps/0984d49d-ff5e-4e19-8355-c5b6d792d386/service_bindings",
    "routes_url": "/v2/apps/0984d49d-ff5e-4e19-8355-c5b6d792d386/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2110e08c-5277-4fce-acfe-1d89c6c74fb9
Content-Length: 1516
X-Content-Type-Options: nosniff