Home
Version 3
Apps API

Apps API

Remove Route from the App

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

Request

Route

DELETE /v2/apps/0f93622b-2b51-49a4-abbb-ccb5a52b02a9/routes/79eb2139-ec2c-4e25-96f7-d110bfa45ebb

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNyIsImVtYWlsIjoiZW1haWwtMTA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5ODV9.wsJxnWBHzZ7YXyqgGOSdOEj9urOS13T27rr5wj6-roY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/0f93622b-2b51-49a4-abbb-ccb5a52b02a9/routes/79eb2139-ec2c-4e25-96f7-d110bfa45ebb" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNyIsImVtYWlsIjoiZW1haWwtMTA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5ODV9.wsJxnWBHzZ7YXyqgGOSdOEj9urOS13T27rr5wj6-roY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0f93622b-2b51-49a4-abbb-ccb5a52b02a9",
    "url": "/v2/apps/0f93622b-2b51-49a4-abbb-ccb5a52b02a9",
    "created_at": "2015-05-21T01:03:04Z",
    "updated_at": "2015-05-21T01:03:04Z"
  },
  "entity": {
    "name": "name-451",
    "production": false,
    "space_guid": "56fb102e-3ded-42d4-a9c6-730b20a234f1",
    "stack_guid": "523707ce-7b87-40f6-b7e8-da24690cbf0e",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "676319b1-56af-41e7-913b-2a2b8ed594ec",
    "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-05-21T01:03:04Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "space_url": "/v2/spaces/56fb102e-3ded-42d4-a9c6-730b20a234f1",
    "stack_url": "/v2/stacks/523707ce-7b87-40f6-b7e8-da24690cbf0e",
    "events_url": "/v2/apps/0f93622b-2b51-49a4-abbb-ccb5a52b02a9/events",
    "service_bindings_url": "/v2/apps/0f93622b-2b51-49a4-abbb-ccb5a52b02a9/service_bindings",
    "routes_url": "/v2/apps/0f93622b-2b51-49a4-abbb-ccb5a52b02a9/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 05f948a6-3c8d-4d14-ad8f-e5813e208318
Content-Length: 1386
X-Content-Type-Options: nosniff