Home
Version 3
Service Plans API

Service Plans API

Updating a Service Plan (deprecated)

PUT /v2/service_plans

Request

Route

PUT /v2/service_plans/8e0233bc-518e-40b8-825d-73c8b487b329

Body

Name Description Default Valid Values Example Values
guid The guid of the service plan
name The name of the service plan
  • 100mb
free A boolean describing if the service plan is free
  • true
  • false
description A description of the service plan
  • Let's you put data in your database!
extra A JSON string with additional data about the plan
  • {"cost": "$2.00"}
unique_id A guid for the service plan in the service broker (not the same as the cloud controller guid)
public A boolean describing that the plan is visible to the all users true
service_guid The guid of the related service
  • deadbeef
active A boolean that determines whether plans can be used to create new instances.
  • true
  • false
{
  "name": "100mb",
  "free": true,
  "description": "Let's you put data in your database!",
  "service_guid": "4081df94-795b-4ff7-9d50-22ad03b2a6f2"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plans/8e0233bc-518e-40b8-825d-73c8b487b329" -d '{
  "name": "100mb",
  "free": true,
  "description": "Let\u0027s you put data in your database!",
  "service_guid": "4081df94-795b-4ff7-9d50-22ad03b2a6f2"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0IiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ2fQ.H6tIkWnoJwwlgpIQGTxSok6jQ3uOoq9Ap26APZT34yU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8e0233bc-518e-40b8-825d-73c8b487b329",
    "url": "/v2/service_plans/8e0233bc-518e-40b8-825d-73c8b487b329",
    "created_at": "2015-06-16T23:40:46Z",
    "updated_at": "2015-06-16T23:40:46Z"
  },
  "entity": {
    "name": "100mb",
    "free": true,
    "description": "Let's you put data in your database!",
    "service_guid": "4081df94-795b-4ff7-9d50-22ad03b2a6f2",
    "extra": null,
    "unique_id": "6c3a5b77-acad-4859-a087-ab4a9190e4ef",
    "public": true,
    "active": true,
    "service_url": "/v2/services/4081df94-795b-4ff7-9d50-22ad03b2a6f2",
    "service_instances_url": "/v2/service_plans/8e0233bc-518e-40b8-825d-73c8b487b329/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bf188de1-1f1f-40b5-987c-5480fdc53356
Content-Length: 696
X-Content-Type-Options: nosniff