Get Calendar preferences
const url = 'https://example.com/api/v1/calendar/preferences';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/calendar/preferences \ --header 'Authorization: Bearer <token>'Requires a signed-in User. It returns the saved Calendar display and drag settings. Route: /api/v1/calendar/preferences. Inputs: . Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Calendar preferences that follow the User to every Installation.
object
Numeric date pattern, or system for the Installation’s locale.
Stable ID of the User’s default Event calendar, or None when no
Calendar is connected yet.
Week start, or system for the Installation’s locale.
Week and Day zoom: the height of one hour in CSS pixels, 24 to 160.
Align dragged items with nearby item edges when the pointer is close.
Align dragged items with the current-time line when the pointer is close.
Clock cycle, or system for the Installation’s locale.
Grid interval for pointer and keyboard movement: 5, 10, 15 or 30 minutes.
Example
{ "date_format": "system", "first_day_of_week": "system", "time_format": "system", "time_step_minutes": 5}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}