Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/7199c367-f558-400b-9a04-cb4852c4748c
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": "19bd7a2f-4dae-4c2e-9f9b-eaf9d4794af4",
"organization_guid": "f6bcfa8e-a5a7-41af-8d44-d587cf570bc1"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/7199c367-f558-400b-9a04-cb4852c4748c" -d '{
"service_plan_guid": "19bd7a2f-4dae-4c2e-9f9b-eaf9d4794af4",
"organization_guid": "f6bcfa8e-a5a7-41af-8d44-d587cf570bc1"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NSIsImVtYWlsIjoiZW1haWwtMTk0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTd9.Yt1IlTk8YTK4AIecl728TO3UEhJ9A4mpRltxPOQZpk8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "7199c367-f558-400b-9a04-cb4852c4748c",
"url": "/v2/service_plan_visibilities/7199c367-f558-400b-9a04-cb4852c4748c",
"created_at": "2015-06-16T23:40:57Z",
"updated_at": "2015-06-16T23:40:57Z"
},
"entity": {
"service_plan_guid": "19bd7a2f-4dae-4c2e-9f9b-eaf9d4794af4",
"organization_guid": "f6bcfa8e-a5a7-41af-8d44-d587cf570bc1",
"service_plan_url": "/v2/service_plans/19bd7a2f-4dae-4c2e-9f9b-eaf9d4794af4",
"organization_url": "/v2/organizations/f6bcfa8e-a5a7-41af-8d44-d587cf570bc1"
}
}
Headers