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.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OCIsImVtYWlsIjoiZW1haWwtMjAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTF9.2e4rG-R_cz0-uE4KBLKr5P7fDIIwUSafhU8XY-MP6cE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/apps/0c55e556-7f98-448f-b740-fc5b70083785/service_bindings/31dea6e2-a12b-4403-8129-64f949418163

cURL

curl "https://api.[your-domain.com]/v2/apps/0c55e556-7f98-448f-b740-fc5b70083785/service_bindings/31dea6e2-a12b-4403-8129-64f949418163" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OCIsImVtYWlsIjoiZW1haWwtMjAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTF9.2e4rG-R_cz0-uE4KBLKr5P7fDIIwUSafhU8XY-MP6cE" \
	-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: ff999f31-9677-4e3a-9d50-1ebfb1947e51
Content-Length: 1325
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "0c55e556-7f98-448f-b740-fc5b70083785",
    "url": "/v2/apps/0c55e556-7f98-448f-b740-fc5b70083785",
    "created_at": "2014-11-13T23:38:31+00:00",
    "updated_at": "2014-11-13T23:38:31+00:00"
  },
  "entity": {
    "name": "name-1097",
    "production": false,
    "space_guid": "e4c2759c-9917-4369-9323-f14b6f1d18f9",
    "stack_guid": "15df81ee-8013-468c-8ccf-0cba67542b96",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "fb4808c2-2d50-4961-ad5c-2c0de65ac29f",
    "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:31+00:00",
    "detected_start_command": "",
    "space_url": "/v2/spaces/e4c2759c-9917-4369-9323-f14b6f1d18f9",
    "stack_url": "/v2/stacks/15df81ee-8013-468c-8ccf-0cba67542b96",
    "events_url": "/v2/apps/0c55e556-7f98-448f-b740-fc5b70083785/events",
    "service_bindings_url": "/v2/apps/0c55e556-7f98-448f-b740-fc5b70083785/service_bindings",
    "routes_url": "/v2/apps/0c55e556-7f98-448f-b740-fc5b70083785/routes"
  }
}