Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/1ca11926-7267-4f6f-a226-cf5dca9550cc/routes/7098ff3f-bcf5-40f0-9986-898b4327bcfd

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMyIsImVtYWlsIjoiZW1haWwtMjcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTh9.0CoUcsfk_XpikvzGc_PMYdrvAmo7F8nJqQ4SUz6sPUo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/1ca11926-7267-4f6f-a226-cf5dca9550cc/routes/7098ff3f-bcf5-40f0-9986-898b4327bcfd" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMyIsImVtYWlsIjoiZW1haWwtMjcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTh9.0CoUcsfk_XpikvzGc_PMYdrvAmo7F8nJqQ4SUz6sPUo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1ca11926-7267-4f6f-a226-cf5dca9550cc",
    "url": "/v2/apps/1ca11926-7267-4f6f-a226-cf5dca9550cc",
    "created_at": "2015-09-30T23:30:58Z",
    "updated_at": "2015-09-30T23:30:58Z"
  },
  "entity": {
    "name": "name-2143",
    "production": false,
    "space_guid": "23416eb6-d8d6-41e6-8a62-df3e838a7d49",
    "stack_guid": "c93f61ef-666b-4de7-8e6a-9338a971781b",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "8f10ecb0-c9de-43fa-a0fd-191268e033d6",
    "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-09-30T23:30:58Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "space_url": "/v2/spaces/23416eb6-d8d6-41e6-8a62-df3e838a7d49",
    "stack_url": "/v2/stacks/c93f61ef-666b-4de7-8e6a-9338a971781b",
    "events_url": "/v2/apps/1ca11926-7267-4f6f-a226-cf5dca9550cc/events",
    "service_bindings_url": "/v2/apps/1ca11926-7267-4f6f-a226-cf5dca9550cc/service_bindings",
    "routes_url": "/v2/apps/1ca11926-7267-4f6f-a226-cf5dca9550cc/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e909ac83-c9c2-497b-b778-e9c69c0fc5a5
Content-Length: 1517
X-Content-Type-Options: nosniff