Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/886bf17c-1e54-426c-9a66-6cc915784e73
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": "522fb1a6-5de2-410d-bb02-cd3a95628238",
"organization_guid": "f0f0fefe-9d56-4830-8642-a738069a4cc3"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/886bf17c-1e54-426c-9a66-6cc915784e73" -d '{
"service_plan_guid": "522fb1a6-5de2-410d-bb02-cd3a95628238",
"organization_guid": "f0f0fefe-9d56-4830-8642-a738069a4cc3"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OCIsImVtYWlsIjoiZW1haWwtMTIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTF9.yNQnoXp-eWvEhqm6O4x41Ypv2bwaM6s76uy56h4iosk" \
-H "Host: example.org" \
-H "Content-Type: application/json" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "886bf17c-1e54-426c-9a66-6cc915784e73",
"url": "/v2/service_plan_visibilities/886bf17c-1e54-426c-9a66-6cc915784e73",
"created_at": "2016-06-08T16:41:31Z",
"updated_at": "2016-06-08T16:41:31Z"
},
"entity": {
"service_plan_guid": "522fb1a6-5de2-410d-bb02-cd3a95628238",
"organization_guid": "f0f0fefe-9d56-4830-8642-a738069a4cc3",
"service_plan_url": "/v2/service_plans/522fb1a6-5de2-410d-bb02-cd3a95628238",
"organization_url": "/v2/organizations/f0f0fefe-9d56-4830-8642-a738069a4cc3"
}
}
Headers