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

Route

PUT /v2/service_instances/7001f0b2-27c1-43ff-82ff-7e471895d17f

Body

{"service_plan_guid":"55a44ca0-e502-44b8-a449-db7a0efad7c6"}

cURL

curl "https://api.[your-domain.com]/v2/service_instances/7001f0b2-27c1-43ff-82ff-7e471895d17f" -d '{"service_plan_guid":"55a44ca0-e502-44b8-a449-db7a0efad7c6"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTN9.neAmnnyaE6jojKhBefUG3QVm7futwP2Gmtps0hHodzQ" \
	-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: 4bec5fcd-a276-4dba-92f3-e610cf478a26
Content-Length: 824
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "7001f0b2-27c1-43ff-82ff-7e471895d17f",
    "url": "/v2/service_instances/7001f0b2-27c1-43ff-82ff-7e471895d17f",
    "created_at": "2014-11-13T23:38:33+00:00",
    "updated_at": "2014-11-13T23:38:33+00:00"
  },
  "entity": {
    "name": "name-1174",
    "credentials": {
      "creds-key-452": "creds-val-452"
    },
    "service_plan_guid": "55a44ca0-e502-44b8-a449-db7a0efad7c6",
    "space_guid": "85003eeb-8d2b-4da2-97d2-e8cbfbe9c76f",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "space_url": "/v2/spaces/85003eeb-8d2b-4da2-97d2-e8cbfbe9c76f",
    "service_plan_url": "/v2/service_plans/55a44ca0-e502-44b8-a449-db7a0efad7c6",
    "service_bindings_url": "/v2/service_instances/7001f0b2-27c1-43ff-82ff-7e471895d17f/service_bindings"
  }
}