Updating a Service Plan
PUT /v2/service_plans
Request
Route
PUT /v2/service_plans/c3c5ac1d-1977-462d-8ba0-01c425b5076b
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/c3c5ac1d-1977-462d-8ba0-01c425b5076b" -d '{
"public": false
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNSIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2Mzl9.hd1jC3BDIvM_rQ5ektuKkWtXmXPQdvnBP_Ge3dN9FKs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "c3c5ac1d-1977-462d-8ba0-01c425b5076b",
"url": "/v2/service_plans/c3c5ac1d-1977-462d-8ba0-01c425b5076b",
"created_at": "2016-04-16T01:23:59Z",
"updated_at": "2016-04-16T01:23:59Z"
},
"entity": {
"name": "name-1032",
"free": false,
"description": "desc-161",
"service_guid": "44ed8120-b7c1-4e1b-89af-d9d50aff3dec",
"extra": null,
"unique_id": "5d293db1-5fc8-4cc1-b96c-b9936754dcbe",
"public": false,
"active": true,
"service_url": "/v2/services/44ed8120-b7c1-4e1b-89af-d9d50aff3dec",
"service_instances_url": "/v2/service_plans/c3c5ac1d-1977-462d-8ba0-01c425b5076b/service_instances"
}
}
Headers