Home
Version 3
Service Instances API

Service Instances API

Updating a service instance

PUT /v2/service_instances/:guid

Fields

Name Description Default Valid Values Example Values
service_plan_guid The new plan guid for the service instance
  • 6c4bd80f-4593-41d1-a2c9-b20cb65ec76e

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4IiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUwfQ.0-WLFZtSFxVWLxfM5IO4QSKtnLcyrgzBkitYnF6irzI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/service_instances/e18d0c68-c834-413e-a538-a2d8d9dbd376

Body

{"service_plan_guid":"ff164f00-00c0-498c-b5f9-b00966704305"}

cURL

curl "https://api.[your-domain.com]/v2/service_instances/e18d0c68-c834-413e-a538-a2d8d9dbd376" -d '{"service_plan_guid":"ff164f00-00c0-498c-b5f9-b00966704305"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4IiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUwfQ.0-WLFZtSFxVWLxfM5IO4QSKtnLcyrgzBkitYnF6irzI" \
	-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: 6b3cdbbf-1b72-4b86-aebc-3b0abc34c5dd
Content-Length: 821
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "e18d0c68-c834-413e-a538-a2d8d9dbd376",
    "url": "/v2/service_instances/e18d0c68-c834-413e-a538-a2d8d9dbd376",
    "created_at": "2014-11-24T19:32:30+00:00",
    "updated_at": "2014-11-24T19:32:30+00:00"
  },
  "entity": {
    "name": "name-302",
    "credentials": {
      "creds-key-50": "creds-val-50"
    },
    "service_plan_guid": "ff164f00-00c0-498c-b5f9-b00966704305",
    "space_guid": "8073b738-51e8-4b5f-9933-6c474de4cd37",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "space_url": "/v2/spaces/8073b738-51e8-4b5f-9933-6c474de4cd37",
    "service_plan_url": "/v2/service_plans/ff164f00-00c0-498c-b5f9-b00966704305",
    "service_bindings_url": "/v2/service_instances/e18d0c68-c834-413e-a538-a2d8d9dbd376/service_bindings"
  }
}