Home
Version 3
Service Plans API

Service Plans API

Updating a Service Plan (deprecated)

PUT /v2/service_plans

Request

Route

PUT /v2/service_plans/9929046d-33d9-4d78-aab4-8340428e4490

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": "7f9c0a26-0d55-4938-9718-506aa61eeeca"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plans/9929046d-33d9-4d78-aab4-8340428e4490" -d '{
  "name": "100mb",
  "free": true,
  "description": "Let\u0027s you put data in your database!",
  "service_guid": "7f9c0a26-0d55-4938-9718-506aa61eeeca"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtOTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNjE4Nzc0M30.zQd_P3KXWfXxSlsEErI6qUpi0ri9G4OwU6xnY7PbAb4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9929046d-33d9-4d78-aab4-8340428e4490",
    "url": "/v2/service_plans/9929046d-33d9-4d78-aab4-8340428e4490",
    "created_at": "2015-03-05T19:15:43Z",
    "updated_at": "2015-03-05T19:15:43Z"
  },
  "entity": {
    "name": "100mb",
    "free": true,
    "description": "Let's you put data in your database!",
    "service_guid": "7f9c0a26-0d55-4938-9718-506aa61eeeca",
    "extra": null,
    "unique_id": "1e7af25e-22cd-4a54-9559-6c9cec3fbd53",
    "public": true,
    "active": true,
    "service_url": "/v2/services/7f9c0a26-0d55-4938-9718-506aa61eeeca",
    "service_instances_url": "/v2/service_plans/9929046d-33d9-4d78-aab4-8340428e4490/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7deb47ea-fe2c-4724-aba3-de96108563b1
Content-Length: 696
X-Content-Type-Options: nosniff