Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/505de65b-7e57-4cf7-8644-ad26f5fd0ad9/routes/e96f3cb5-e668-4af9-b942-f934069f84d4

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NyIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTh9.Z59N4ohxtbe2MTOMuD9QPehcZSuWuTxrfeU9_KWOVoM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/505de65b-7e57-4cf7-8644-ad26f5fd0ad9/routes/e96f3cb5-e668-4af9-b942-f934069f84d4" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NyIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTh9.Z59N4ohxtbe2MTOMuD9QPehcZSuWuTxrfeU9_KWOVoM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "505de65b-7e57-4cf7-8644-ad26f5fd0ad9",
    "url": "/v2/apps/505de65b-7e57-4cf7-8644-ad26f5fd0ad9",
    "created_at": "2015-04-07T19:11:58Z",
    "updated_at": "2015-04-07T19:11:58Z"
  },
  "entity": {
    "name": "name-1896",
    "production": false,
    "space_guid": "2e91b6fc-732a-483f-b57e-2c4d26459cf9",
    "stack_guid": "58ca2251-4cbd-4139-a3d1-a79da0299d5e",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "7f05c032-2b41-4678-aab0-952ac769393c",
    "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-04-07T19:11:58Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/2e91b6fc-732a-483f-b57e-2c4d26459cf9",
    "stack_url": "/v2/stacks/58ca2251-4cbd-4139-a3d1-a79da0299d5e",
    "events_url": "/v2/apps/505de65b-7e57-4cf7-8644-ad26f5fd0ad9/events",
    "service_bindings_url": "/v2/apps/505de65b-7e57-4cf7-8644-ad26f5fd0ad9/service_bindings",
    "routes_url": "/v2/apps/505de65b-7e57-4cf7-8644-ad26f5fd0ad9/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 12bceaea-9116-440f-991d-95e3ebc42a3e
Content-Length: 1363
X-Content-Type-Options: nosniff