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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MCIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTJ9.kpc6FHU7TEJM566JNTbg9qMBCY_j_-f2t-seZ7m3rp0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/apps/0ec2a9ff-ad6a-45b5-93cb-5e83ecb2094d/routes/def67bd1-f7cb-4ba9-9eba-7c39c653c2d8

cURL

curl "https://api.[your-domain.com]/v2/apps/0ec2a9ff-ad6a-45b5-93cb-5e83ecb2094d/routes/def67bd1-f7cb-4ba9-9eba-7c39c653c2d8" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MCIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTJ9.kpc6FHU7TEJM566JNTbg9qMBCY_j_-f2t-seZ7m3rp0" \
	-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: 7e6b7321-eebe-4c14-845a-5124e13087d7
Content-Length: 1325
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "0ec2a9ff-ad6a-45b5-93cb-5e83ecb2094d",
    "url": "/v2/apps/0ec2a9ff-ad6a-45b5-93cb-5e83ecb2094d",
    "created_at": "2014-11-13T23:38:32+00:00",
    "updated_at": "2014-11-13T23:38:32+00:00"
  },
  "entity": {
    "name": "name-1131",
    "production": false,
    "space_guid": "e0153c7d-f7fc-4db6-8acf-c960cfb6a484",
    "stack_guid": "20d14373-614b-4109-84ee-201213afd954",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "e9e2e0e3-08b4-408a-b8d8-e4afbd018da7",
    "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-13T23:38:32+00:00",
    "detected_start_command": "",
    "space_url": "/v2/spaces/e0153c7d-f7fc-4db6-8acf-c960cfb6a484",
    "stack_url": "/v2/stacks/20d14373-614b-4109-84ee-201213afd954",
    "events_url": "/v2/apps/0ec2a9ff-ad6a-45b5-93cb-5e83ecb2094d/events",
    "service_bindings_url": "/v2/apps/0ec2a9ff-ad6a-45b5-93cb-5e83ecb2094d/service_bindings",
    "routes_url": "/v2/apps/0ec2a9ff-ad6a-45b5-93cb-5e83ecb2094d/routes"
  }
}