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.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NyIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODB9.0iQ4l1vl-KoXOB86v5UyPCO-w_pt5UVXQ3n8iQS8fds
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/apps/36bd4113-277e-4706-b8c2-ac1c9971f83d/routes/0fc64fbd-159a-477b-8505-5561c3dbf658

cURL

curl "https://api.[your-domain.com]/v2/apps/36bd4113-277e-4706-b8c2-ac1c9971f83d/routes/0fc64fbd-159a-477b-8505-5561c3dbf658" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NyIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODB9.0iQ4l1vl-KoXOB86v5UyPCO-w_pt5UVXQ3n8iQS8fds" \
	-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: 5ef84ac1-20b4-4f63-88a0-ecb382170dc1
Content-Length: 1343
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "36bd4113-277e-4706-b8c2-ac1c9971f83d",
    "url": "/v2/apps/36bd4113-277e-4706-b8c2-ac1c9971f83d",
    "created_at": "2015-01-27T19:14:39Z",
    "updated_at": "2015-01-27T19:14:39Z"
  },
  "entity": {
    "name": "name-1636",
    "production": false,
    "space_guid": "1e18daa2-3d97-45c7-998a-e3d0d9ae1d45",
    "stack_guid": "8449d0d6-ca08-4997-b9b3-1c5268ce7a16",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "e9230107-2420-4b56-a183-f2e4c30ab7a2",
    "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-01-27T19:14:39Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/1e18daa2-3d97-45c7-998a-e3d0d9ae1d45",
    "stack_url": "/v2/stacks/8449d0d6-ca08-4997-b9b3-1c5268ce7a16",
    "events_url": "/v2/apps/36bd4113-277e-4706-b8c2-ac1c9971f83d/events",
    "service_bindings_url": "/v2/apps/36bd4113-277e-4706-b8c2-ac1c9971f83d/service_bindings",
    "routes_url": "/v2/apps/36bd4113-277e-4706-b8c2-ac1c9971f83d/routes"
  }
}