Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

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

Route

DELETE /v2/apps/0d8c317e-734e-4dd7-8d6c-1e3755ee4d2a/routes/9b77db64-6fae-4e0b-954c-aa80c848a1cf

cURL

curl "https://api.[your-domain.com]/v2/apps/0d8c317e-734e-4dd7-8d6c-1e3755ee4d2a/routes/9b77db64-6fae-4e0b-954c-aa80c848a1cf" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NiIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDZ9.HrSuA_0fy1gzKWfw7loIqMiUPMKmSkgTnhkfn_Gngo4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b37a13de-3b81-46c5-998d-c9ecb1121b66
Content-Length: 1325
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "0d8c317e-734e-4dd7-8d6c-1e3755ee4d2a",
    "url": "/v2/apps/0d8c317e-734e-4dd7-8d6c-1e3755ee4d2a",
    "created_at": "2014-11-05T01:02:26+00:00",
    "updated_at": "2014-11-05T01:02:26+00:00"
  },
  "entity": {
    "name": "name-1053",
    "production": false,
    "space_guid": "c8800a29-5e36-4f9d-a049-947bf1b7dd27",
    "stack_guid": "fd1c5038-ff6f-49aa-8e83-64e01b5c357f",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "434095f3-e142-4975-8b61-ec66f425c27d",
    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": null,
    "package_state": "PENDING",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "docker_image": null,
    "package_updated_at": "2014-11-05T01:02:26+00:00",
    "detected_start_command": "",
    "space_url": "/v2/spaces/c8800a29-5e36-4f9d-a049-947bf1b7dd27",
    "stack_url": "/v2/stacks/fd1c5038-ff6f-49aa-8e83-64e01b5c357f",
    "events_url": "/v2/apps/0d8c317e-734e-4dd7-8d6c-1e3755ee4d2a/events",
    "service_bindings_url": "/v2/apps/0d8c317e-734e-4dd7-8d6c-1e3755ee4d2a/service_bindings",
    "routes_url": "/v2/apps/0d8c317e-734e-4dd7-8d6c-1e3755ee4d2a/routes"
  }
}