Updating a Service Plan (deprecated)
PUT /v2/service_plans
Request
Route
PUT /v2/service_plans/a059bcb0-397d-45d1-9d5e-8c3990d44c39
Body
Name |
Description |
Default |
Valid Values |
Example Values |
guid
|
The guid of the service plan
|
|
|
|
name
|
The name of the service plan
|
|
|
|
free
|
A boolean describing if the service plan is free
|
|
|
|
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
|
|
|
|
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
|
|
|
|
active
|
A boolean that determines whether plans can be used to create new instances.
|
|
|
|
{
"name": "100mb",
"free": true,
"description": "Let's you put data in your database!",
"service_guid": "5c0c13ce-735d-4f25-87b4-b4fa0fa43f97"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plans/a059bcb0-397d-45d1-9d5e-8c3990d44c39" -d '{
"name": "100mb",
"free": true,
"description": "Let\u0027s you put data in your database!",
"service_guid": "5c0c13ce-735d-4f25-87b4-b4fa0fa43f97"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNyIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4MzZ9.7Wz6Q6D5ROq2XexdUitz2i1gMzmzHzRxV8fj6LNjV5U" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "a059bcb0-397d-45d1-9d5e-8c3990d44c39",
"url": "/v2/service_plans/a059bcb0-397d-45d1-9d5e-8c3990d44c39",
"created_at": "2015-11-03T00:53:56Z",
"updated_at": "2015-11-03T00:53:56Z"
},
"entity": {
"name": "100mb",
"free": true,
"description": "Let's you put data in your database!",
"service_guid": "5c0c13ce-735d-4f25-87b4-b4fa0fa43f97",
"extra": null,
"unique_id": "aae2a003-bf97-4f90-a482-43c3ae373b1d",
"public": true,
"active": true,
"service_url": "/v2/services/5c0c13ce-735d-4f25-87b4-b4fa0fa43f97",
"service_instances_url": "/v2/service_plans/a059bcb0-397d-45d1-9d5e-8c3990d44c39/service_instances"
}
}
Headers