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/ee8bd72b-c238-4381-b513-33fde99f1229

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

cURL

curl "https://api.[your-domain.com]/v2/user_provided_service_instances/ee8bd72b-c238-4381-b513-33fde99f1229" -d '{
  "credentials": {
    "somekey": "somenewvalue"
  }
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgwIiwiZW1haWwiOiJlbWFpbC00N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTczfQ.X4TovIHNJs4oTBRUfnaNFvVsczTo10u2ZW4TLbZn1D8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ee8bd72b-c238-4381-b513-33fde99f1229",
    "url": "/v2/user_provided_service_instances/ee8bd72b-c238-4381-b513-33fde99f1229",
    "created_at": "2016-01-13T17:29:33Z",
    "updated_at": "2016-01-13T17:29:33Z"
  },
  "entity": {
    "name": "name-161",
    "credentials": {
      "somekey": "somenewvalue"
    },
    "space_guid": "49a6674a-d223-4e7e-a5db-2f0311f38e4c",
    "type": "user_provided_service_instance",
    "syslog_drain_url": "https://foo.com/url-15",
    "route_service_url": null,
    "space_url": "/v2/spaces/49a6674a-d223-4e7e-a5db-2f0311f38e4c",
    "service_bindings_url": "/v2/user_provided_service_instances/ee8bd72b-c238-4381-b513-33fde99f1229/service_bindings",
    "routes_url": "/v2/user_provided_service_instances/ee8bd72b-c238-4381-b513-33fde99f1229/routes"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 822
X-Content-Type-Options: nosniff