Updating a Service Plan
PUT /v2/service_plans
Request
Route
PUT /v2/service_plans/8efbf5c2-24ef-4e68-a530-f076d8d9e9da
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/8efbf5c2-24ef-4e68-a530-f076d8d9e9da" -d '{
"public": false
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NiIsImVtYWlsIjoiZW1haWwtMTgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTl9.TIt8GUAZSnPD6P4LOsYLu1_vPAN7S8QEeFNAsE3DdgA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "8efbf5c2-24ef-4e68-a530-f076d8d9e9da",
"url": "/v2/service_plans/8efbf5c2-24ef-4e68-a530-f076d8d9e9da",
"created_at": "2016-05-12T00:45:19Z",
"updated_at": "2016-05-12T00:45:19Z"
},
"entity": {
"name": "name-1663",
"free": false,
"description": "desc-99",
"service_guid": "047a3b5b-80ab-4b75-8508-74f3707e47c0",
"extra": null,
"unique_id": "16264728-f0cd-4c31-bcba-060ed21945ed",
"public": false,
"active": true,
"service_url": "/v2/services/047a3b5b-80ab-4b75-8508-74f3707e47c0",
"service_instances_url": "/v2/service_plans/8efbf5c2-24ef-4e68-a530-f076d8d9e9da/service_instances"
}
}
Headers