Home
Version 3
Service Instances API

Service Instances API

Migrate Service Instances from one Service Plan to another Service Plan (experimental)

PUT /v2/service_plans/:service_plan_guid/service_instances

Move all Service Instances for the service plan from the URL to the service plan in the request body

Fields

Name Description Default Valid Values Example Values
service_plan_guid The guid of the plan to move the existing instances to
  • 6c4bd80f-4593-41d1-a2c9-b20cb65ec76e

Request

Headers

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

Route

PUT /v2/service_plans/84048112-c016-4524-8842-6ac808a94dbe/service_instances

Body

{"service_plan_guid":"6fa0fa45-29cf-4b72-9447-41b03b4c019e"}

cURL

curl "https://api.[your-domain.com]/v2/service_plans/84048112-c016-4524-8842-6ac808a94dbe/service_instances" -d '{"service_plan_guid":"6fa0fa45-29cf-4b72-9447-41b03b4c019e"}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MyIsImVtYWlsIjoiZW1haWwtMjA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTN9.lYiY2mHhIwdZHmHWjEzIJbpsfVM9g3r7Mrlb1npChAY" \
	-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: 276a5c84-b162-41d9-bc63-2d20e5113b41
Content-Length: 19
X-Content-Type-Options: nosniff

Status

200 OK

Body

{"changed_count":1}