Home
Version 3
Apps API

Apps API

Remove Route from the App

DELETE /v2/apps/:guid/routes/:route_guid

Request

Route

DELETE /v2/apps/2896bb3d-d018-492e-bfdf-535fe918216c/routes/ee42c985-91d5-494e-9f55-d4d9ceb96227

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMSIsImVtYWlsIjoiZW1haWwtOTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk2M30.WwqbfHCz_g6A5m6yT4e31SmF00p8F60PSsi-tmFzTEc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/2896bb3d-d018-492e-bfdf-535fe918216c/routes/ee42c985-91d5-494e-9f55-d4d9ceb96227" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMSIsImVtYWlsIjoiZW1haWwtOTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk2M30.WwqbfHCz_g6A5m6yT4e31SmF00p8F60PSsi-tmFzTEc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2896bb3d-d018-492e-bfdf-535fe918216c",
    "url": "/v2/apps/2896bb3d-d018-492e-bfdf-535fe918216c",
    "created_at": "2015-03-18T22:52:42Z",
    "updated_at": "2015-03-18T22:52:42Z"
  },
  "entity": {
    "name": "name-511",
    "production": false,
    "space_guid": "d2623d6b-e593-46c7-af50-d3cc27ab0dbf",
    "stack_guid": "48e22cd4-604e-4f47-aa71-5b26d476a6a7",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "4e7b7a20-db7a-4994-a629-3cfc716297bf",
    "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,
    "diego": false,
    "docker_image": null,
    "package_updated_at": "2015-03-18T22:52:42Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/d2623d6b-e593-46c7-af50-d3cc27ab0dbf",
    "stack_url": "/v2/stacks/48e22cd4-604e-4f47-aa71-5b26d476a6a7",
    "events_url": "/v2/apps/2896bb3d-d018-492e-bfdf-535fe918216c/events",
    "service_bindings_url": "/v2/apps/2896bb3d-d018-492e-bfdf-535fe918216c/service_bindings",
    "routes_url": "/v2/apps/2896bb3d-d018-492e-bfdf-535fe918216c/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f23a94cc-4f3c-4bf7-b04c-7366636153ab
Content-Length: 1362
X-Content-Type-Options: nosniff