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.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNzF9.Ol0Vx5t5AwToCT5_8Lehh-mifFJ3_xabyOI4Ls7eI5g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/apps/2d50958b-d19e-4fcb-a91a-51eba279697f/routes/1b4b6137-5b52-4270-94ce-1085e584d9e7

cURL

curl "https://api.[your-domain.com]/v2/apps/2d50958b-d19e-4fcb-a91a-51eba279697f/routes/1b4b6137-5b52-4270-94ce-1085e584d9e7" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNzF9.Ol0Vx5t5AwToCT5_8Lehh-mifFJ3_xabyOI4Ls7eI5g" \
	-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: c1357770-c730-4bce-98f8-2d5911ec9af1
Content-Length: 1325
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "2d50958b-d19e-4fcb-a91a-51eba279697f",
    "url": "/v2/apps/2d50958b-d19e-4fcb-a91a-51eba279697f",
    "created_at": "2014-11-24T19:32:50+00:00",
    "updated_at": "2014-11-24T19:32:50+00:00"
  },
  "entity": {
    "name": "name-1215",
    "production": false,
    "space_guid": "eb4986b7-90b7-4ddf-b1d2-a9a871aa9b42",
    "stack_guid": "b8106290-cc21-4361-b71a-aaf0be621633",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "d0b086a0-7772-464f-bc22-970c732e3a9b",
    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": null,
    "package_state": "PENDING",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "docker_image": null,
    "package_updated_at": "2014-11-24T19:32:51+00:00",
    "detected_start_command": "",
    "space_url": "/v2/spaces/eb4986b7-90b7-4ddf-b1d2-a9a871aa9b42",
    "stack_url": "/v2/stacks/b8106290-cc21-4361-b71a-aaf0be621633",
    "events_url": "/v2/apps/2d50958b-d19e-4fcb-a91a-51eba279697f/events",
    "service_bindings_url": "/v2/apps/2d50958b-d19e-4fcb-a91a-51eba279697f/service_bindings",
    "routes_url": "/v2/apps/2d50958b-d19e-4fcb-a91a-51eba279697f/routes"
  }
}