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.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NSIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDZ9.K0b5JCvpmErhMWCiP-1gfNoA7ghgOZ5jAi5avwhQ1hY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/apps/9e9352eb-f9ed-4980-aa2b-b892096fc939/service_bindings/a6afcc8d-861b-4af3-bff6-2b0891be6fa1

cURL

curl "https://api.[your-domain.com]/v2/apps/9e9352eb-f9ed-4980-aa2b-b892096fc939/service_bindings/a6afcc8d-861b-4af3-bff6-2b0891be6fa1" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NSIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDZ9.K0b5JCvpmErhMWCiP-1gfNoA7ghgOZ5jAi5avwhQ1hY" \
	-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: 110b007c-739e-4a75-8041-7bcf447eba77
Content-Length: 1325
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "9e9352eb-f9ed-4980-aa2b-b892096fc939",
    "url": "/v2/apps/9e9352eb-f9ed-4980-aa2b-b892096fc939",
    "created_at": "2014-11-05T01:02:26+00:00",
    "updated_at": "2014-11-05T01:02:26+00:00"
  },
  "entity": {
    "name": "name-1034",
    "production": false,
    "space_guid": "dcbdc81d-1a05-4e3f-9a4a-995acf8825c0",
    "stack_guid": "75cac1ae-349c-414c-b6ab-300319b3e4d2",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STOPPED",
    "version": "7a731bb7-e0b3-4c00-884b-fd95545ac274",
    "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-05T01:02:26+00:00",
    "detected_start_command": "",
    "space_url": "/v2/spaces/dcbdc81d-1a05-4e3f-9a4a-995acf8825c0",
    "stack_url": "/v2/stacks/75cac1ae-349c-414c-b6ab-300319b3e4d2",
    "events_url": "/v2/apps/9e9352eb-f9ed-4980-aa2b-b892096fc939/events",
    "service_bindings_url": "/v2/apps/9e9352eb-f9ed-4980-aa2b-b892096fc939/service_bindings",
    "routes_url": "/v2/apps/9e9352eb-f9ed-4980-aa2b-b892096fc939/routes"
  }
}