Home
Version 3
Service Plans API

Service Plans API

Updating a Service Plan (deprecated)

PUT /v2/service_plans

Request

Route

PUT /v2/service_plans/e326affb-e35f-4728-8990-ab22c89662e6

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": "e7c9450d-9cf5-4d9f-aee6-7a5af35490ab"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plans/e326affb-e35f-4728-8990-ab22c89662e6" -d '{
  "name": "100mb",
  "free": true,
  "description": "Let\u0027s you put data in your database!",
  "service_guid": "e7c9450d-9cf5-4d9f-aee6-7a5af35490ab"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4Njk2fQ.m8QTuXQZMm3ZwgLY9JH9EyaCdkPkdsV3hFYJAlP4mcI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e326affb-e35f-4728-8990-ab22c89662e6",
    "url": "/v2/service_plans/e326affb-e35f-4728-8990-ab22c89662e6",
    "created_at": "2015-04-07T19:11:36Z",
    "updated_at": "2015-04-07T19:11:36Z"
  },
  "entity": {
    "name": "100mb",
    "free": true,
    "description": "Let's you put data in your database!",
    "service_guid": "e7c9450d-9cf5-4d9f-aee6-7a5af35490ab",
    "extra": null,
    "unique_id": "5024535c-6bae-4a28-bad2-b83608a8a668",
    "public": true,
    "active": true,
    "service_url": "/v2/services/e7c9450d-9cf5-4d9f-aee6-7a5af35490ab",
    "service_instances_url": "/v2/service_plans/e326affb-e35f-4728-8990-ab22c89662e6/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8234bec0-8e74-4de5-ba38-938e2730d83f
Content-Length: 696
X-Content-Type-Options: nosniff