Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/5bbc4097-f7ba-4d88-a09c-8c82ddb742c1/routes/6454f26b-ff7d-40ab-8cf1-e2b158a037f3

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMjEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDB9.gyPalxtbLixt0ZFfTA9coHN98TZIizpE-Vm-VSnU2AQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/5bbc4097-f7ba-4d88-a09c-8c82ddb742c1/routes/6454f26b-ff7d-40ab-8cf1-e2b158a037f3" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMjEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDB9.gyPalxtbLixt0ZFfTA9coHN98TZIizpE-Vm-VSnU2AQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5bbc4097-f7ba-4d88-a09c-8c82ddb742c1",
    "url": "/v2/apps/5bbc4097-f7ba-4d88-a09c-8c82ddb742c1",
    "created_at": "2015-05-07T23:37:20Z",
    "updated_at": "2015-05-07T23:37:20Z"
  },
  "entity": {
    "name": "name-1675",
    "production": false,
    "space_guid": "e87346ac-5787-4b36-a3ed-e93005879df6",
    "stack_guid": "c18664ca-7ddc-4efa-b8de-5bf758787699",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "ec1460df-8121-4317-ab10-0cf3d4e7c784",
    "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-05-07T23:37:20Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "space_url": "/v2/spaces/e87346ac-5787-4b36-a3ed-e93005879df6",
    "stack_url": "/v2/stacks/c18664ca-7ddc-4efa-b8de-5bf758787699",
    "events_url": "/v2/apps/5bbc4097-f7ba-4d88-a09c-8c82ddb742c1/events",
    "service_bindings_url": "/v2/apps/5bbc4097-f7ba-4d88-a09c-8c82ddb742c1/service_bindings",
    "routes_url": "/v2/apps/5bbc4097-f7ba-4d88-a09c-8c82ddb742c1/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9bc42721-2892-4c48-b6b5-85eb58fc1cad
Content-Length: 1387
X-Content-Type-Options: nosniff