Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Fields
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
|
|
|
|
Request
Headers
Route
PUT /v2/service_plan_visibilities/be51a1b2-c677-44b8-bf98-322bde44e8c5
Body
{
"service_plan_guid": "e983a056-6aff-4dec-9e55-1942ab9c42cc",
"organization_guid": "d27b77bf-729a-4e9b-aaa4-198369bc76ae"
}
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/be51a1b2-c677-44b8-bf98-322bde44e8c5" -d '{
"service_plan_guid": "e983a056-6aff-4dec-9e55-1942ab9c42cc",
"organization_guid": "d27b77bf-729a-4e9b-aaa4-198369bc76ae"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MCIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDN9.FY9yKogBy4HugUYIBvA7FuzLWEXvTL2Y3G2MgQRWHbs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "be51a1b2-c677-44b8-bf98-322bde44e8c5",
"url": "/v2/service_plan_visibilities/be51a1b2-c677-44b8-bf98-322bde44e8c5",
"created_at": "2014-11-05T01:02:23+00:00",
"updated_at": "2014-11-05T01:02:23+00:00"
},
"entity": {
"service_plan_guid": "e983a056-6aff-4dec-9e55-1942ab9c42cc",
"organization_guid": "d27b77bf-729a-4e9b-aaa4-198369bc76ae",
"service_plan_url": "/v2/service_plans/e983a056-6aff-4dec-9e55-1942ab9c42cc",
"organization_url": "/v2/organizations/d27b77bf-729a-4e9b-aaa4-198369bc76ae"
}
}