Home
Version 3
Service Plans API

Service Plans API

Updating a Service Plan (deprecated)

PUT /v2/service_plans

Request

Route

PUT /v2/service_plans/8c7f45f7-06ce-42ad-95f7-007bf4a3ce4a

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": "735cde13-44c0-4700-9fad-3e7aadd2053d"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plans/8c7f45f7-06ce-42ad-95f7-007bf4a3ce4a" -d '{
  "name": "100mb",
  "free": true,
  "description": "Let\u0027s you put data in your database!",
  "service_guid": "735cde13-44c0-4700-9fad-3e7aadd2053d"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MSIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY4M30.wQ4IAxR0Ta5atkd90P17ATTfp_qUbmX6lXyerFYQzGs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8c7f45f7-06ce-42ad-95f7-007bf4a3ce4a",
    "url": "/v2/service_plans/8c7f45f7-06ce-42ad-95f7-007bf4a3ce4a",
    "created_at": "2015-12-22T18:28:03Z",
    "updated_at": "2015-12-22T18:28:03Z"
  },
  "entity": {
    "name": "100mb",
    "free": true,
    "description": "Let's you put data in your database!",
    "service_guid": "735cde13-44c0-4700-9fad-3e7aadd2053d",
    "extra": null,
    "unique_id": "5e7f38b4-6c1b-4b01-b63b-232430636ef6",
    "public": true,
    "active": true,
    "service_url": "/v2/services/735cde13-44c0-4700-9fad-3e7aadd2053d",
    "service_instances_url": "/v2/service_plans/8c7f45f7-06ce-42ad-95f7-007bf4a3ce4a/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 696
X-Content-Type-Options: nosniff