Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/2e599610-29db-4024-a676-775363968656
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": "00218a72-ffa5-433a-8096-9a04cb47f06a",
"organization_guid": "66e063c1-f735-45a2-8e45-c81e561005a3"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/2e599610-29db-4024-a676-775363968656" -d '{
"service_plan_guid": "00218a72-ffa5-433a-8096-9a04cb47f06a",
"organization_guid": "66e063c1-f735-45a2-8e45-c81e561005a3"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0OSIsImVtYWlsIjoiZW1haWwtODVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTU1NzkzOH0.YFG2GSPd2OFfYz4xt-qTTn-1Ky0MqHz4WhtcPvQoD14" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "2e599610-29db-4024-a676-775363968656",
"url": "/v2/service_plan_visibilities/2e599610-29db-4024-a676-775363968656",
"created_at": "2015-10-15T23:52:17Z",
"updated_at": "2015-10-15T23:52:17Z"
},
"entity": {
"service_plan_guid": "00218a72-ffa5-433a-8096-9a04cb47f06a",
"organization_guid": "66e063c1-f735-45a2-8e45-c81e561005a3",
"service_plan_url": "/v2/service_plans/00218a72-ffa5-433a-8096-9a04cb47f06a",
"organization_url": "/v2/organizations/66e063c1-f735-45a2-8e45-c81e561005a3"
}
}
Headers