Updating a Service Plan
PUT /v2/service_plans
Request
Route
PUT /v2/service_plans/8b077df4-0043-44c7-bafa-d03b1d9b8dc0
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/8b077df4-0043-44c7-bafa-d03b1d9b8dc0" -d '{
"public": false
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MiIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTJ9.peWAfVptqkX8muJ_rzeysSmzPgdrjhWLpKy80HkRW28" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "8b077df4-0043-44c7-bafa-d03b1d9b8dc0",
"url": "/v2/service_plans/8b077df4-0043-44c7-bafa-d03b1d9b8dc0",
"created_at": "2016-04-06T00:17:32Z",
"updated_at": "2016-04-06T00:17:32Z"
},
"entity": {
"name": "name-1019",
"free": false,
"description": "desc-119",
"service_guid": "b56c8551-31a4-42f1-b581-511a5083b978",
"extra": null,
"unique_id": "a01306d8-7425-45a5-bae6-3f6287bcbff6",
"public": false,
"active": true,
"service_url": "/v2/services/b56c8551-31a4-42f1-b581-511a5083b978",
"service_instances_url": "/v2/service_plans/8b077df4-0043-44c7-bafa-d03b1d9b8dc0/service_instances"
}
}
Headers