Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/be30ed38-e180-4c0c-b917-4fb540bce6a4
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": "7a57921d-e229-4403-a976-6b62a37506ec",
"organization_guid": "ead1ea3c-ab2b-4a49-b623-d078fbfceb29"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/be30ed38-e180-4c0c-b917-4fb540bce6a4" -d '{
"service_plan_guid": "7a57921d-e229-4403-a976-6b62a37506ec",
"organization_guid": "ead1ea3c-ab2b-4a49-b623-d078fbfceb29"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgiLCJlbWFpbCI6ImVtYWlsLThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDc4MjkxOX0.BJJZTTQsoc-4ydhz-AHhgT3Q0d3uHElPe4y3GRl3AYc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "be30ed38-e180-4c0c-b917-4fb540bce6a4",
"url": "/v2/service_plan_visibilities/be30ed38-e180-4c0c-b917-4fb540bce6a4",
"created_at": "2015-10-07T00:35:19Z",
"updated_at": "2015-10-07T00:35:19Z"
},
"entity": {
"service_plan_guid": "7a57921d-e229-4403-a976-6b62a37506ec",
"organization_guid": "ead1ea3c-ab2b-4a49-b623-d078fbfceb29",
"service_plan_url": "/v2/service_plans/7a57921d-e229-4403-a976-6b62a37506ec",
"organization_url": "/v2/organizations/ead1ea3c-ab2b-4a49-b623-d078fbfceb29"
}
}
Headers