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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MiIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzh9.NsGJx--t5zb0ruRDrKp11KjE9VmAFZKoj0LVPqHynHo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/apps/6025f06f-e152-47ea-b8e6-fc1dcc667d66/routes/b6489e55-95a0-484b-b2bd-a434c36c20be

cURL

curl "https://api.[your-domain.com]/v2/apps/6025f06f-e152-47ea-b8e6-fc1dcc667d66/routes/b6489e55-95a0-484b-b2bd-a434c36c20be" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MiIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzh9.NsGJx--t5zb0ruRDrKp11KjE9VmAFZKoj0LVPqHynHo" \
	-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: b324b9bb-e55a-497e-9951-bb0b13457eab
Content-Length: 1343
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "6025f06f-e152-47ea-b8e6-fc1dcc667d66",
    "url": "/v2/apps/6025f06f-e152-47ea-b8e6-fc1dcc667d66",
    "created_at": "2015-02-10T01:42:58Z",
    "updated_at": "2015-02-10T01:42:58Z"
  },
  "entity": {
    "name": "name-1860",
    "production": false,
    "space_guid": "703f7254-69ae-4928-8594-4671487bf895",
    "stack_guid": "3370cd33-a76e-409c-bb8b-5ce3378f8917",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "3a419301-23b6-431e-9cdd-0ee3cc51301c",
    "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-10T01:42:58Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/703f7254-69ae-4928-8594-4671487bf895",
    "stack_url": "/v2/stacks/3370cd33-a76e-409c-bb8b-5ce3378f8917",
    "events_url": "/v2/apps/6025f06f-e152-47ea-b8e6-fc1dcc667d66/events",
    "service_bindings_url": "/v2/apps/6025f06f-e152-47ea-b8e6-fc1dcc667d66/service_bindings",
    "routes_url": "/v2/apps/6025f06f-e152-47ea-b8e6-fc1dcc667d66/routes"
  }
}