Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/30aeb4d0-f8c5-4363-af40-478b873000df
Body
Name |
Description |
Default |
Valid Values |
Example Values |
service_plan_guid
|
The guid of the plan that will be made visible
|
|
|
|
organization_guid
|
The guid of the organization the plan will be visible to
|
|
|
|
{
"service_plan_guid": "b039b2a7-2c4a-46da-9072-f13cac43f177",
"organization_guid": "78c3400a-df79-4b45-ae97-5b8bd34424ba"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/30aeb4d0-f8c5-4363-af40-478b873000df" -d '{
"service_plan_guid": "b039b2a7-2c4a-46da-9072-f13cac43f177",
"organization_guid": "78c3400a-df79-4b45-ae97-5b8bd34424ba"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOCIsImVtYWlsIjoiZW1haWwtMTM2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3ODd9.0Woa4ipIh7cVpssCNeBsZfLMMIZC3P57oIaoVKqDV90" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "30aeb4d0-f8c5-4363-af40-478b873000df",
"url": "/v2/service_plan_visibilities/30aeb4d0-f8c5-4363-af40-478b873000df",
"created_at": "2015-07-06T23:23:07Z",
"updated_at": "2015-07-06T23:23:07Z"
},
"entity": {
"service_plan_guid": "b039b2a7-2c4a-46da-9072-f13cac43f177",
"organization_guid": "78c3400a-df79-4b45-ae97-5b8bd34424ba",
"service_plan_url": "/v2/service_plans/b039b2a7-2c4a-46da-9072-f13cac43f177",
"organization_url": "/v2/organizations/78c3400a-df79-4b45-ae97-5b8bd34424ba"
}
}
Headers