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
name The new name for the service instance
  • my-new-service-instance
service_plan_guid The new plan guid for the service instance
  • 6c4bd80f-4593-41d1-a2c9-b20cb65ec76e

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNCIsImVtYWlsIjoiZW1haWwtMjM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzZ9.NBVwc6MHIAL5mHMM5wRK73Dxy4YD35CpRidQAn34AJA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/service_instances/03d7202f-af7d-4fbc-a14a-ad9e7e6292aa

Body

{"service_plan_guid":"d6f1913d-a2e8-469a-8490-8286b9e20366"}

cURL

curl "https://api.[your-domain.com]/v2/service_instances/03d7202f-af7d-4fbc-a14a-ad9e7e6292aa" -d '{"service_plan_guid":"d6f1913d-a2e8-469a-8490-8286b9e20366"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNCIsImVtYWlsIjoiZW1haWwtMjM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzZ9.NBVwc6MHIAL5mHMM5wRK73Dxy4YD35CpRidQAn34AJA" \
	-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: 8c9c16e3-767e-47ff-b6a5-0277680ba12a
Content-Length: 967
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "03d7202f-af7d-4fbc-a14a-ad9e7e6292aa",
    "url": "/v2/service_instances/03d7202f-af7d-4fbc-a14a-ad9e7e6292aa",
    "created_at": "2015-02-10T01:42:55Z",
    "updated_at": "2015-02-10T01:42:55Z"
  },
  "entity": {
    "name": "name-1603",
    "credentials": {
      "creds-key-510": "creds-val-510"
    },
    "service_plan_guid": "d6f1913d-a2e8-469a-8490-8286b9e20366",
    "space_guid": "f54da236-f5d9-4800-95f5-5e42c125d5bc",
    "gateway_data": null,
    "dashboard_url": null,
    "type": "managed_service_instance",
    "last_operation": {
      "type": "update",
      "state": "succeeded",
      "description": null,
      "updated_at": "2015-02-10T01:42:55Z"
    },
    "space_url": "/v2/spaces/f54da236-f5d9-4800-95f5-5e42c125d5bc",
    "service_plan_url": "/v2/service_plans/d6f1913d-a2e8-469a-8490-8286b9e20366",
    "service_bindings_url": "/v2/service_instances/03d7202f-af7d-4fbc-a14a-ad9e7e6292aa/service_bindings"
  }
}