Updating a Service Plan
PUT /v2/service_plans
Request
Route
PUT /v2/service_plans/e9dfe203-5ced-4a5c-91e9-e8f690a3b532
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/e9dfe203-5ced-4a5c-91e9-e8f690a3b532" -d '{
"public": false
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNyIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMH0.F4ze-_39iv639GDS693YwGswM30ZLKHKXD_3NW_VePY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "e9dfe203-5ced-4a5c-91e9-e8f690a3b532",
"url": "/v2/service_plans/e9dfe203-5ced-4a5c-91e9-e8f690a3b532",
"created_at": "2016-03-14T22:30:30Z",
"updated_at": "2016-03-14T22:30:30Z"
},
"entity": {
"name": "name-1358",
"free": false,
"description": "desc-76",
"service_guid": "5e428253-c86a-40d3-a71a-25be53cb3e77",
"extra": null,
"unique_id": "560fd421-7f1d-4578-9dc8-10adab7afc2d",
"public": false,
"active": true,
"service_url": "/v2/services/5e428253-c86a-40d3-a71a-25be53cb3e77",
"service_instances_url": "/v2/service_plans/e9dfe203-5ced-4a5c-91e9-e8f690a3b532/service_instances"
}
}
Headers