Save the caller's calendar assistant preferences (user)
Zero-configuration by design: every field is optional (sometimes), and
a request that omits a field leaves that preference untouched. There is
no partial-object replacement semantics beyond that.
write_calendar_id and read_calendar_ids are each validated against
GET /me/calendar/calendars at save time: a write id must appear there
with writable: true, and every read id must appear there at all
(the Cockpit sync mirror is never a legal choice for either, because it
is excluded from that list). A rejected selection is a 422, not a
silent no-op.
Rate limited to 15 requests/minute (throttle:calendar-write).
User bearer token. Default authentication for customer-facing endpoints.
Obtain a token by calling POST /login with your credentials, then send it
on every subsequent request as Authorization: Bearer <token>. The token
inherits the permissions and PBX scope of the authenticated user.
- HTTP Authorization Scheme
bearer- Bearer format
Bearer <token>
application/jsonRequest body · required · application/json
read_calendar_idsarray<string>
Europe/Luxembourgdetails busy_only nullbusy_onlyResponses
dataobject
assistant_read_calendar_idsarray<string>
details busy_onlyerrorsobject
https://cockpit.voxbi.com/api/v1/me/calendar/preferences
curl -X PUT 'https://cockpit.voxbi.com/api/v1/me/calendar/preferences' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
--data '{"write_calendar_id":null,"read_calendar_ids":[],"timezone":"Europe/Luxembourg","colleague_visibility":"busy_only"}'
const response = await fetch('https://cockpit.voxbi.com/api/v1/me/calendar/preferences', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${YOUR_TOKEN}`,
},
body: JSON.stringify({
"write_calendar_id": null,
"read_calendar_ids": [],
"timezone": "Europe/Luxembourg",
"colleague_visibility": "busy_only"
}),
});
const data = await response.json();
console.log(data);
import requests
response = requests.put('https://cockpit.voxbi.com/api/v1/me/calendar/preferences',
headers={'Authorization': f'Bearer {YOUR_TOKEN}'},
json={
"write_calendar_id": null,
"read_calendar_ids": [],
"timezone": "Europe/Luxembourg",
"colleague_visibility": "busy_only"
}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'PUT',
'header' => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
'content' => '{
\"write_calendar_id\": null,
\"read_calendar_ids\": [],
\"timezone\": \"Europe/Luxembourg\",
\"colleague_visibility\": \"busy_only\"
}',
],
]);
$response = file_get_contents('https://cockpit.voxbi.com/api/v1/me/calendar/preferences', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
{ … }
"data": { … }
{ … }
application/json{ … }
{ … }
"errors": { … }
"timezone": [ … ]
{ … }
60application/json