Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/07b16e37-8e55-4668-98de-143c908c47e5/routes/b578a2d5-99ee-446c-8351-84d0b87c8d9b

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/07b16e37-8e55-4668-98de-143c908c47e5/routes/b578a2d5-99ee-446c-8351-84d0b87c8d9b" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNiIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDl9.rgp_Haohr7xYxYPt0JA001NIqXqtgznRdfUHfxkrCa0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "07b16e37-8e55-4668-98de-143c908c47e5",
    "url": "/v2/apps/07b16e37-8e55-4668-98de-143c908c47e5",
    "created_at": "2015-10-13T17:31:49Z",
    "updated_at": "2015-10-13T17:31:49Z"
  },
  "entity": {
    "name": "name-801",
    "production": false,
    "space_guid": "f8acebaf-6c99-46c4-9c31-da802a1fa447",
    "stack_guid": "3188ee63-c23a-44e5-9922-fe6f8d117dd7",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "24d0a917-8a98-4d1e-8586-fefc9b2bf299",
    "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,
    "staging_failed_description": null,
    "diego": false,
    "docker_image": null,
    "package_updated_at": "2015-10-13T17:31:49Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/f8acebaf-6c99-46c4-9c31-da802a1fa447",
    "stack_url": "/v2/stacks/3188ee63-c23a-44e5-9922-fe6f8d117dd7",
    "events_url": "/v2/apps/07b16e37-8e55-4668-98de-143c908c47e5/events",
    "service_bindings_url": "/v2/apps/07b16e37-8e55-4668-98de-143c908c47e5/service_bindings",
    "routes_url": "/v2/apps/07b16e37-8e55-4668-98de-143c908c47e5/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cda09981-9bbc-4a21-bee8-89c9f81945f1
Content-Length: 1516
X-Content-Type-Options: nosniff