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/db314d55-e3a3-42f9-bfdb-d7b95bb3924b

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

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/db314d55-e3a3-42f9-bfdb-d7b95bb3924b" -d '{
  "credentials": {
    "somekey": "somenewvalue"
  }
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2IiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI1OTQ4NjU4fQ.HHLXqytcEJHRYjONndm-G5xagf4W6L_SE8GNHTbVn9U" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "db314d55-e3a3-42f9-bfdb-d7b95bb3924b",
    "url": "/v2/user_provided_service_instances/db314d55-e3a3-42f9-bfdb-d7b95bb3924b",
    "created_at": "2015-03-03T00:50:58Z",
    "updated_at": "2015-03-03T00:50:58Z"
  },
  "entity": {
    "name": "name-76",
    "credentials": {
      "somekey": "somenewvalue"
    },
    "space_guid": "944edb16-9825-4e4b-8c2c-161016e4c290",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-18",
    "space_url": "/v2/spaces/944edb16-9825-4e4b-8c2c-161016e4c290",
    "service_bindings_url": "/v2/user_provided_service_instances/db314d55-e3a3-42f9-bfdb-d7b95bb3924b/service_bindings"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5571af44-210d-4a15-8044-b410a0dd50cf
Content-Length: 689
X-Content-Type-Options: nosniff