Home
Version 3
Apps API

Apps API

Remove Service Binding from the App

DELETE /v2/apps/:guid/service_bindings/:service_binding_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.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNSIsImVtYWlsIjoiZW1haWwtMjQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNzF9.na2kELkuH8TZQCjr8coeGh3huBoLfC62eg2gS-iMPyM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/apps/07864648-3cbc-4c3e-8e02-fd203da0a5b5/service_bindings/ddb325c9-fb09-47fc-bcc8-d9438985c37f

cURL

curl "https://api.[your-domain.com]/v2/apps/07864648-3cbc-4c3e-8e02-fd203da0a5b5/service_bindings/ddb325c9-fb09-47fc-bcc8-d9438985c37f" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNSIsImVtYWlsIjoiZW1haWwtMjQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNzF9.na2kELkuH8TZQCjr8coeGh3huBoLfC62eg2gS-iMPyM" \
	-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: 171e2bd9-2700-4341-8ab4-b1237f1184d3
Content-Length: 1325
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "07864648-3cbc-4c3e-8e02-fd203da0a5b5",
    "url": "/v2/apps/07864648-3cbc-4c3e-8e02-fd203da0a5b5",
    "created_at": "2014-11-24T19:32:51+00:00",
    "updated_at": "2014-11-24T19:32:51+00:00"
  },
  "entity": {
    "name": "name-1225",
    "production": false,
    "space_guid": "31509a1d-fe49-46c3-bd66-ba94aef88934",
    "stack_guid": "423ee2ba-f2aa-44f3-a646-380bad32b31a",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "331f0733-2519-4617-88dc-823361021cf1",
    "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-24T19:32:51+00:00",
    "detected_start_command": "",
    "space_url": "/v2/spaces/31509a1d-fe49-46c3-bd66-ba94aef88934",
    "stack_url": "/v2/stacks/423ee2ba-f2aa-44f3-a646-380bad32b31a",
    "events_url": "/v2/apps/07864648-3cbc-4c3e-8e02-fd203da0a5b5/events",
    "service_bindings_url": "/v2/apps/07864648-3cbc-4c3e-8e02-fd203da0a5b5/service_bindings",
    "routes_url": "/v2/apps/07864648-3cbc-4c3e-8e02-fd203da0a5b5/routes"
  }
}