Home
Version 3
Service Plans API

Service Plans API

Updating a Service Plan (deprecated)

PUT /v2/service_plans

Request

Route

PUT /v2/service_plans/7b5a75bf-65c7-4b6f-b2e1-63ec301a394f

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": "0b677cd7-6c0b-447e-91ac-d5c7e2d49943"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plans/7b5a75bf-65c7-4b6f-b2e1-63ec301a394f" -d '{
  "name": "100mb",
  "free": true,
  "description": "Let\u0027s you put data in your database!",
  "service_guid": "0b677cd7-6c0b-447e-91ac-d5c7e2d49943"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MyIsImVtYWlsIjoiZW1haWwtMTE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTl9.azUoo_mktSFT7YcZSz9yKEJahvZGRDscuKyTPeJmndU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7b5a75bf-65c7-4b6f-b2e1-63ec301a394f",
    "url": "/v2/service_plans/7b5a75bf-65c7-4b6f-b2e1-63ec301a394f",
    "created_at": "2015-08-06T00:36:39Z",
    "updated_at": "2015-08-06T00:36:39Z"
  },
  "entity": {
    "name": "100mb",
    "free": true,
    "description": "Let's you put data in your database!",
    "service_guid": "0b677cd7-6c0b-447e-91ac-d5c7e2d49943",
    "extra": null,
    "unique_id": "6fc2e94b-3c85-4437-8fc3-0f86562f2596",
    "public": true,
    "active": true,
    "service_url": "/v2/services/0b677cd7-6c0b-447e-91ac-d5c7e2d49943",
    "service_instances_url": "/v2/service_plans/7b5a75bf-65c7-4b6f-b2e1-63ec301a394f/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: dde66822-9d86-4c66-a263-63d36a726ccd
Content-Length: 696
X-Content-Type-Options: nosniff