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

Route

DELETE /v2/apps/190ef770-b8e9-44fd-b4bc-a992f470e55c/service_bindings/cd6faf9e-27b4-4be3-8efb-2194ec1b505f

cURL

curl "https://api.[your-domain.com]/v2/apps/190ef770-b8e9-44fd-b4bc-a992f470e55c/service_bindings/cd6faf9e-27b4-4be3-8efb-2194ec1b505f" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OCIsImVtYWlsIjoiZW1haWwtMjE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzh9.-haDV9FXB7FJu1Uyl2pkuTe5HbTwaVCHNF8DZXtrlNM" \
	-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: 271fe54b-7ce7-49b1-9c5f-9349e8f29239
Content-Length: 1343
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "190ef770-b8e9-44fd-b4bc-a992f470e55c",
    "url": "/v2/apps/190ef770-b8e9-44fd-b4bc-a992f470e55c",
    "created_at": "2015-02-12T01:42:18Z",
    "updated_at": "2015-02-12T01:42:18Z"
  },
  "entity": {
    "name": "name-1758",
    "production": false,
    "space_guid": "685bfa9c-5dd1-4dac-9a21-8ff7aa164e5d",
    "stack_guid": "0053e077-5c02-43a3-ae72-4a68e4e445bc",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "fc9e916e-1d5b-45a2-bc58-3ab79becf9db",
    "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-02-12T01:42:18Z",
    "detected_start_command": "",
    "space_url": "/v2/spaces/685bfa9c-5dd1-4dac-9a21-8ff7aa164e5d",
    "stack_url": "/v2/stacks/0053e077-5c02-43a3-ae72-4a68e4e445bc",
    "events_url": "/v2/apps/190ef770-b8e9-44fd-b4bc-a992f470e55c/events",
    "service_bindings_url": "/v2/apps/190ef770-b8e9-44fd-b4bc-a992f470e55c/service_bindings",
    "routes_url": "/v2/apps/190ef770-b8e9-44fd-b4bc-a992f470e55c/routes"
  }
}