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

Route

DELETE /v2/apps/152209f7-a9de-45c7-94c9-237676a759a2/service_bindings/f5d5ebda-903a-4cdc-a9c0-52a59f43c593

cURL

curl "https://api.[your-domain.com]/v2/apps/152209f7-a9de-45c7-94c9-237676a759a2/service_bindings/f5d5ebda-903a-4cdc-a9c0-52a59f43c593" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MCIsImVtYWlsIjoiZW1haWwtMjIwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODB9.rY2SV7mpZRdqjfSX3zyqFErqf6ucWrsjeLaJsf20i9A" \
	-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: 934d28a4-53f2-419c-a64b-dd239fb9a779
Content-Length: 1343
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "152209f7-a9de-45c7-94c9-237676a759a2",
    "url": "/v2/apps/152209f7-a9de-45c7-94c9-237676a759a2",
    "created_at": "2015-01-27T19:14:40Z",
    "updated_at": "2015-01-27T19:14:40Z"
  },
  "entity": {
    "name": "name-1676",
    "production": false,
    "space_guid": "a06a7941-e162-4dfa-bc32-7136d35ebe54",
    "stack_guid": "1e9bb64f-6e31-4edc-a0e3-d9fd0c15b5b1",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "932324cc-04d0-4afe-9200-c51e934deb9e",
    "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": "2015-01-27T19:14:40Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/a06a7941-e162-4dfa-bc32-7136d35ebe54",
    "stack_url": "/v2/stacks/1e9bb64f-6e31-4edc-a0e3-d9fd0c15b5b1",
    "events_url": "/v2/apps/152209f7-a9de-45c7-94c9-237676a759a2/events",
    "service_bindings_url": "/v2/apps/152209f7-a9de-45c7-94c9-237676a759a2/service_bindings",
    "routes_url": "/v2/apps/152209f7-a9de-45c7-94c9-237676a759a2/routes"
  }
}