Home
Version 3
User Provided Service Instances API

User Provided Service Instances API

Updating a User Provided Service Instance

PUT /v2/user_provided_service_instances/:guid

Request

Route

PUT /v2/user_provided_service_instances/763c81b9-53b7-495a-add6-12ddc1c3f4c4

Body

Name Description Default Valid Values Example Values
name A name for the service instance
  • my-user-provided-instance
syslog_drain_url The url for the syslog_drain to direct to
  • syslog://example.com
credentials A hash that can be used to store credentials
  • {:somekey=>"somevalue"}
{
  "credentials": {
    "somekey": "somenewvalue"
  }
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMSIsImVtYWlsIjoiZW1haWwtMzAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTV9.-uoKzx7EtQDkK3cmYhWqJtkb6IuUQLX0ggNfOcOuLa0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/763c81b9-53b7-495a-add6-12ddc1c3f4c4" -d '{
  "credentials": {
    "somekey": "somenewvalue"
  }
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMSIsImVtYWlsIjoiZW1haWwtMzAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTV9.-uoKzx7EtQDkK3cmYhWqJtkb6IuUQLX0ggNfOcOuLa0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "763c81b9-53b7-495a-add6-12ddc1c3f4c4",
    "url": "/v2/user_provided_service_instances/763c81b9-53b7-495a-add6-12ddc1c3f4c4",
    "created_at": "2015-07-27T22:43:35Z",
    "updated_at": "2015-07-27T22:43:35Z"
  },
  "entity": {
    "name": "name-2376",
    "credentials": {
      "somekey": "somenewvalue"
    },
    "space_guid": "bb69b3cf-3ac5-4351-aa44-b0b34716454b",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-92",
    "space_url": "/v2/spaces/bb69b3cf-3ac5-4351-aa44-b0b34716454b",
    "service_bindings_url": "/v2/user_provided_service_instances/763c81b9-53b7-495a-add6-12ddc1c3f4c4/service_bindings"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f1d4ccd8-aa82-4feb-a105-94da8ddd7c1e
Content-Length: 691
X-Content-Type-Options: nosniff