Home
Version 3
Service Plans API

Service Plans API

Updating a Service Plan (deprecated)

PUT /v2/service_plans

Request

Route

PUT /v2/service_plans/3898f6bc-150c-484e-9d59-e316f455e730

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": "df9e03d7-872c-420e-898d-4d17e07d0a58"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NyIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MjF9.8paOFkRZ7GTauiSQUZPPzjPpCFGzDyn3gievTXP0CKM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/3898f6bc-150c-484e-9d59-e316f455e730" -d '{
  "name": "100mb",
  "free": true,
  "description": "Let\u0027s you put data in your database!",
  "service_guid": "df9e03d7-872c-420e-898d-4d17e07d0a58"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NyIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MjF9.8paOFkRZ7GTauiSQUZPPzjPpCFGzDyn3gievTXP0CKM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3898f6bc-150c-484e-9d59-e316f455e730",
    "url": "/v2/service_plans/3898f6bc-150c-484e-9d59-e316f455e730",
    "created_at": "2015-03-10T23:12:01Z",
    "updated_at": "2015-03-10T23:12:01Z"
  },
  "entity": {
    "name": "100mb",
    "free": true,
    "description": "Let's you put data in your database!",
    "service_guid": "df9e03d7-872c-420e-898d-4d17e07d0a58",
    "extra": null,
    "unique_id": "62614cb7-decd-469c-85c2-acc23ca98461",
    "public": true,
    "active": true,
    "service_url": "/v2/services/df9e03d7-872c-420e-898d-4d17e07d0a58",
    "service_instances_url": "/v2/service_plans/3898f6bc-150c-484e-9d59-e316f455e730/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 83c0c80c-b200-49f3-b053-6dfdab7cd508
Content-Length: 696
X-Content-Type-Options: nosniff