Updating a Service Plan
PUT /v2/service_plans
Request
Route
PUT /v2/service_plans/195f6bd5-0aa4-4a97-9c8d-5410e5e6d4b6
Body
Name |
Description |
Default |
Valid Values |
Example Values |
guid
|
The guid of the service plan
|
|
|
|
public
|
A boolean describing that the plan is visible to the all users
|
true
|
|
|
{
"public": false
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plans/195f6bd5-0aa4-4a97-9c8d-5410e5e6d4b6" -d '{
"public": false
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MSIsImVtYWlsIjoiZW1haWwtMzI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDl9.NbPVKSOXjO3dcUYNPBGCBuJBX4ID5UhFpXlhb-zL3Vo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "195f6bd5-0aa4-4a97-9c8d-5410e5e6d4b6",
"url": "/v2/service_plans/195f6bd5-0aa4-4a97-9c8d-5410e5e6d4b6",
"created_at": "2016-02-19T02:04:09Z",
"updated_at": "2016-02-19T02:04:09Z"
},
"entity": {
"name": "name-2674",
"free": false,
"description": "desc-225",
"service_guid": "42bea093-8fe5-491a-8a34-b1943dc3709a",
"extra": null,
"unique_id": "7c4f2f8a-aa82-49e9-9f0c-76248aa1036d",
"public": false,
"active": true,
"service_url": "/v2/services/42bea093-8fe5-491a-8a34-b1943dc3709a",
"service_instances_url": "/v2/service_plans/195f6bd5-0aa4-4a97-9c8d-5410e5e6d4b6/service_instances"
}
}
Headers