Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/24b84167-b678-4c21-9a6e-e43c3e247ab9
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": "cac99990-f2bb-46d8-9ceb-a7064e5544a1",
"organization_guid": "239eeefc-885c-421d-b370-695437a85a33"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/24b84167-b678-4c21-9a6e-e43c3e247ab9" -d '{
"service_plan_guid": "cac99990-f2bb-46d8-9ceb-a7064e5544a1",
"organization_guid": "239eeefc-885c-421d-b370-695437a85a33"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NiIsImVtYWlsIjoiZW1haWwtMzE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2OTJ9.SLdjVnPV5DrRqlxBHfFw_N4pQ2T3IjYPtD1nnLepRw4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "24b84167-b678-4c21-9a6e-e43c3e247ab9",
"url": "/v2/service_plan_visibilities/24b84167-b678-4c21-9a6e-e43c3e247ab9",
"created_at": "2016-03-17T21:41:32Z",
"updated_at": "2016-03-17T21:41:32Z"
},
"entity": {
"service_plan_guid": "cac99990-f2bb-46d8-9ceb-a7064e5544a1",
"organization_guid": "239eeefc-885c-421d-b370-695437a85a33",
"service_plan_url": "/v2/service_plans/cac99990-f2bb-46d8-9ceb-a7064e5544a1",
"organization_url": "/v2/organizations/239eeefc-885c-421d-b370-695437a85a33"
}
}
Headers