Home
Version 3
Service Instances API

Service Instances API

Updating the service plan 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.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTI5fQ.KiZZvsoJihKVQ3eRFfGUr29kESrysu4-xaQ3uq3XXsE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/service_instances/f8738f0c-124f-4628-85da-cafde1fcfd2f

Body

{"service_plan_guid":"274ad350-467d-4c3b-8f2d-1d95597a2c3a"}

cURL

curl "https://api.[your-domain.com]/v2/service_instances/f8738f0c-124f-4628-85da-cafde1fcfd2f" -d '{"service_plan_guid":"274ad350-467d-4c3b-8f2d-1d95597a2c3a"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTI5fQ.KiZZvsoJihKVQ3eRFfGUr29kESrysu4-xaQ3uq3XXsE" \
	-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: e4721163-f58e-4b4a-888d-7401197c2a40
Content-Length: 820
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "f8738f0c-124f-4628-85da-cafde1fcfd2f",
    "url": "/v2/service_instances/f8738f0c-124f-4628-85da-cafde1fcfd2f",
    "created_at": "2014-11-05T01:02:09+00:00",
    "updated_at": "2014-11-05T01:02:09+00:00"
  },
  "entity": {
    "name": "name-58",
    "credentials": {
      "creds-key-27": "creds-val-27"
    },
    "service_plan_guid": "274ad350-467d-4c3b-8f2d-1d95597a2c3a",
    "space_guid": "b0fe9928-348e-4863-9791-c52a85f9f45d",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "space_url": "/v2/spaces/b0fe9928-348e-4863-9791-c52a85f9f45d",
    "service_plan_url": "/v2/service_plans/274ad350-467d-4c3b-8f2d-1d95597a2c3a",
    "service_bindings_url": "/v2/service_instances/f8738f0c-124f-4628-85da-cafde1fcfd2f/service_bindings"
  }
}