Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/3fbf726b-86df-4dd4-9fca-8c6c2aaeddfd
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": "1ceaba59-7d0c-4e57-b1d3-a28ac40cd5f1",
"organization_guid": "2285e1d4-e1b2-44c8-ac78-0abaf2f23330"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/3fbf726b-86df-4dd4-9fca-8c6c2aaeddfd" -d '{
"service_plan_guid": "1ceaba59-7d0c-4e57-b1d3-a28ac40cd5f1",
"organization_guid": "2285e1d4-e1b2-44c8-ac78-0abaf2f23330"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NyIsImVtYWlsIjoiZW1haWwtMTI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0MzR9.MqK0sjaww9lU1ZpyYiT55pZ2Qc9VdLvtfrSK7lzq8NA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "3fbf726b-86df-4dd4-9fca-8c6c2aaeddfd",
"url": "/v2/service_plan_visibilities/3fbf726b-86df-4dd4-9fca-8c6c2aaeddfd",
"created_at": "2016-03-14T22:30:34Z",
"updated_at": "2016-03-14T22:30:34Z"
},
"entity": {
"service_plan_guid": "1ceaba59-7d0c-4e57-b1d3-a28ac40cd5f1",
"organization_guid": "2285e1d4-e1b2-44c8-ac78-0abaf2f23330",
"service_plan_url": "/v2/service_plans/1ceaba59-7d0c-4e57-b1d3-a28ac40cd5f1",
"organization_url": "/v2/organizations/2285e1d4-e1b2-44c8-ac78-0abaf2f23330"
}
}
Headers