Home
Version 3
Service Plans API

Service Plans API

Updating a Service Plan (deprecated)

PUT /v2/service_plans

Fields

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NyIsImVtYWlsIjoiZW1haWwtMTEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzd9.DEz6FvjsiQkT6AJmKsFIqrUPOAMZ_R5lMWZGxI-h_qQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/service_plans/705bccc2-fad2-4d6a-ba7c-edb124e8fc73

Body

{
  "name": "100mb",
  "free": true,
  "description": "Let's you put data in your database!",
  "service_guid": "d375f9f3-6698-40c9-b59a-aa68efcc02ec"
}

cURL

curl "https://api.[your-domain.com]/v2/service_plans/705bccc2-fad2-4d6a-ba7c-edb124e8fc73" -d '{
  "name": "100mb",
  "free": true,
  "description": "Let\u0027s you put data in your database!",
  "service_guid": "d375f9f3-6698-40c9-b59a-aa68efcc02ec"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NyIsImVtYWlsIjoiZW1haWwtMTEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzd9.DEz6FvjsiQkT6AJmKsFIqrUPOAMZ_R5lMWZGxI-h_qQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 13a958bb-3628-4003-aef3-94554e42bf6f
Content-Length: 706
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "705bccc2-fad2-4d6a-ba7c-edb124e8fc73",
    "url": "/v2/service_plans/705bccc2-fad2-4d6a-ba7c-edb124e8fc73",
    "created_at": "2014-11-05T01:02:17+00:00",
    "updated_at": "2014-11-05T01:02:17+00:00"
  },
  "entity": {
    "name": "100mb",
    "free": true,
    "description": "Let's you put data in your database!",
    "service_guid": "d375f9f3-6698-40c9-b59a-aa68efcc02ec",
    "extra": null,
    "unique_id": "ede2a6cb-1c40-43ec-9113-5690764f9758",
    "public": true,
    "active": true,
    "service_url": "/v2/services/d375f9f3-6698-40c9-b59a-aa68efcc02ec",
    "service_instances_url": "/v2/service_plans/705bccc2-fad2-4d6a-ba7c-edb124e8fc73/service_instances"
  }
}