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.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MCIsImVtYWlsIjoiZW1haWwtMTAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5Njl9.3-rNSgAykEi18fc2M5xriUmnKYOChMSk_r2sZTFSotU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/apps/3f2090bb-dfe1-4f5b-ad75-fec2273279be/routes/a76fe238-f3e0-4eff-82a3-6a0de36f4ee2

cURL

curl "https://api.[your-domain.com]/v2/apps/3f2090bb-dfe1-4f5b-ad75-fec2273279be/routes/a76fe238-f3e0-4eff-82a3-6a0de36f4ee2" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MCIsImVtYWlsIjoiZW1haWwtMTAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5Njl9.3-rNSgAykEi18fc2M5xriUmnKYOChMSk_r2sZTFSotU" \
	-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: 1961b4ae-a22a-4045-bb8c-01bd834bd7c4
Content-Length: 1358
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "3f2090bb-dfe1-4f5b-ad75-fec2273279be",
    "url": "/v2/apps/3f2090bb-dfe1-4f5b-ad75-fec2273279be",
    "created_at": "2014-12-24T01:39:29+00:00",
    "updated_at": "2014-12-24T01:39:29+00:00"
  },
  "entity": {
    "name": "name-1249",
    "production": false,
    "space_guid": "ce0285f6-b73c-4987-b762-7a681aa1ff18",
    "stack_guid": "670b122b-166d-438f-b361-b726a5cd0250",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "5ff35f5d-ddc4-4f40-9884-fb8d825e52b4",
    "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": "2014-12-24T01:39:29+00:00",
    "detected_start_command": "",
    "space_url": "/v2/spaces/ce0285f6-b73c-4987-b762-7a681aa1ff18",
    "stack_url": "/v2/stacks/670b122b-166d-438f-b361-b726a5cd0250",
    "events_url": "/v2/apps/3f2090bb-dfe1-4f5b-ad75-fec2273279be/events",
    "service_bindings_url": "/v2/apps/3f2090bb-dfe1-4f5b-ad75-fec2273279be/service_bindings",
    "routes_url": "/v2/apps/3f2090bb-dfe1-4f5b-ad75-fec2273279be/routes"
  }
}