Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/392ece64-b15d-457d-86de-e518164167af/routes/9c63b124-4677-4536-98ad-d5b1abc94b28

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/392ece64-b15d-457d-86de-e518164167af/routes/9c63b124-4677-4536-98ad-d5b1abc94b28" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOCIsImVtYWlsIjoiZW1haWwtMjMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzR9.r49xAJ7oAxm1liIVLVOtIovaSTMJU2XsJKpCfNzBkzk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "392ece64-b15d-457d-86de-e518164167af",
    "url": "/v2/apps/392ece64-b15d-457d-86de-e518164167af",
    "created_at": "2015-03-03T00:51:14Z",
    "updated_at": "2015-03-03T00:51:14Z"
  },
  "entity": {
    "name": "name-1702",
    "production": false,
    "space_guid": "9c294dad-f2aa-43f9-a32a-2b20071a401d",
    "stack_guid": "67bb093d-9f31-4b36-9819-e9685e628d85",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "234723fd-36b1-48a4-9a1e-8377223113e3",
    "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,
    "diego": false,
    "docker_image": null,
    "package_updated_at": "2015-03-03T00:51:14Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/9c294dad-f2aa-43f9-a32a-2b20071a401d",
    "stack_url": "/v2/stacks/67bb093d-9f31-4b36-9819-e9685e628d85",
    "events_url": "/v2/apps/392ece64-b15d-457d-86de-e518164167af/events",
    "service_bindings_url": "/v2/apps/392ece64-b15d-457d-86de-e518164167af/service_bindings",
    "routes_url": "/v2/apps/392ece64-b15d-457d-86de-e518164167af/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a829def5-199d-4f17-bdaa-3f25e399a35c
Content-Length: 1363
X-Content-Type-Options: nosniff