Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

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

Route

DELETE /v2/apps/3d1f29ee-fad3-420f-9282-6fa5f75e0278/routes/39ee5ab7-d6a3-4b9e-bc54-21477bc1dedd

cURL

curl "https://api.[your-domain.com]/v2/apps/3d1f29ee-fad3-420f-9282-6fa5f75e0278/routes/39ee5ab7-d6a3-4b9e-bc54-21477bc1dedd" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OSIsImVtYWlsIjoiZW1haWwtMjE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzh9.vrEQHP50uSTbzXQDx2SHd7ruWCFcu5Hw7pS1CkNGWmY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5130ed80-6062-4340-b951-b5e3904288a3
Content-Length: 1343
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "3d1f29ee-fad3-420f-9282-6fa5f75e0278",
    "url": "/v2/apps/3d1f29ee-fad3-420f-9282-6fa5f75e0278",
    "created_at": "2015-02-12T01:42:18Z",
    "updated_at": "2015-02-12T01:42:18Z"
  },
  "entity": {
    "name": "name-1779",
    "production": false,
    "space_guid": "1095cce5-de51-4355-9263-f9a3150c3be5",
    "stack_guid": "4435e4c3-4261-47db-98aa-aef880b7709d",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "21df3026-df87-4fb3-a327-90b632601873",
    "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,
    "docker_image": null,
    "package_updated_at": "2015-02-12T01:42:18Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/1095cce5-de51-4355-9263-f9a3150c3be5",
    "stack_url": "/v2/stacks/4435e4c3-4261-47db-98aa-aef880b7709d",
    "events_url": "/v2/apps/3d1f29ee-fad3-420f-9282-6fa5f75e0278/events",
    "service_bindings_url": "/v2/apps/3d1f29ee-fad3-420f-9282-6fa5f75e0278/service_bindings",
    "routes_url": "/v2/apps/3d1f29ee-fad3-420f-9282-6fa5f75e0278/routes"
  }
}