Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/9ddb5b91-2bc1-4dbf-9788-a2fbae5ba587/routes/aadd6860-5de3-4cee-ab32-a7c315d54190

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OCIsImVtYWlsIjoiZW1haWwtMjE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTd9.9dpa7NiK6wntzOK-gwkIjLChoQPuMFvOmMQQdrFf-mo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/9ddb5b91-2bc1-4dbf-9788-a2fbae5ba587/routes/aadd6860-5de3-4cee-ab32-a7c315d54190" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OCIsImVtYWlsIjoiZW1haWwtMjE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTd9.9dpa7NiK6wntzOK-gwkIjLChoQPuMFvOmMQQdrFf-mo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9ddb5b91-2bc1-4dbf-9788-a2fbae5ba587",
    "url": "/v2/apps/9ddb5b91-2bc1-4dbf-9788-a2fbae5ba587",
    "created_at": "2015-03-05T19:15:57Z",
    "updated_at": "2015-03-05T19:15:57Z"
  },
  "entity": {
    "name": "name-1054",
    "production": false,
    "space_guid": "051d34d2-807f-471d-a6d3-e1355b3ad5c6",
    "stack_guid": "12f283dc-9c41-4ff0-887b-bdbdd2921c24",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "5e2c80a3-4276-4526-b0d0-69d667b8c16b",
    "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-05T19:15:57Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/051d34d2-807f-471d-a6d3-e1355b3ad5c6",
    "stack_url": "/v2/stacks/12f283dc-9c41-4ff0-887b-bdbdd2921c24",
    "events_url": "/v2/apps/9ddb5b91-2bc1-4dbf-9788-a2fbae5ba587/events",
    "service_bindings_url": "/v2/apps/9ddb5b91-2bc1-4dbf-9788-a2fbae5ba587/service_bindings",
    "routes_url": "/v2/apps/9ddb5b91-2bc1-4dbf-9788-a2fbae5ba587/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3f99774c-dfcc-4973-9457-2f07e012cda1
Content-Length: 1363
X-Content-Type-Options: nosniff