Calendar
Events, invitations, calendar links and subscriptions.
Calendar tools
| Tool | What it does |
|---|---|
| listCalendarEvents | Your occurrences between two moments, a repeating event once for each time it happens, with its place, status and your answer. The owner adds the team with includeTeam. |
| getCalendarEvent | One event in full, by id or by the threadId of the conversation that carries its invitation: the attendees and their answers, how it repeats and its reminders. |
| getCalendarEventIcs | One event as the text of an .ics file another calendar app imports, with the whole series of a repeating event. |
| createCalendarEvent | Put an event on the calendar and invite the attendees from an address you may send as. In the app’s chat it asks first unless you asked for it. |
| updateCalendarEvent | Change an event you organise, and send the update to everyone invited. In the app’s chat it asks first unless you asked for it. |
| cancelCalendarEvent | Call off a meeting you organise and tell everyone invited. In the app’s chat it always asks first. |
| deleteCalendarEvent | Take an event off the calendar without telling anybody. In the app’s chat it always asks first. |
| respondToCalendarEvent | Accept, decline or tentatively accept an invitation, or propose a new time with your answer, and tell the organiser. In the app’s chat it asks first unless you asked for it. |
| declineCalendarProposal | Keep the original time of a meeting you organise after a guest proposed another one, and tell the guest. In the app’s chat it asks first unless you asked for it. |
| listCalendarFeeds | The secret links that publish your calendar to Google Calendar, Outlook or Apple Calendar, with their addresses. |
| createCalendarFeed | Make a secret link that publishes your calendar, with every detail or busy times only. In the app’s chat it always asks first. |
| resetCalendarFeed | Give a calendar link a new address, so the old one stops working. In the app’s chat it always asks first. |
| deleteCalendarFeed | Turn a calendar link off for good. In the app’s chat it always asks first. |
| listCalendarSubscriptions | The other calendars you subscribe to by link, and whether each is read without errors. |
| subscribeToCalendar | Add another calendar by its iCalendar link, such as a Google or Outlook calendar address, so its events show read-only. In the app’s chat it always asks first. |
| updateCalendarSubscription | Rename a calendar subscription or change its colour. In the app’s chat it asks first unless you asked for it. |
| refreshCalendarSubscription | Read a subscribed calendar again now, and restart one that stopped after failures. |
| unsubscribeFromCalendar | Remove a calendar subscription and the events it brought. In the app’s chat it always asks first. |
| listCalendarImports | The calendar files and calendars brought in, newest first, with how many events each added, found already here and left out. |
| getCalendarImport | One calendar import with its report: the calendars it read and what it left out, and why. |
| undoCalendarImport | Remove every event one calendar import added. Nobody is told. In the app’s chat it always asks first. |
| createCalendarImport | Import an .ics file passed as its text. Its events become your own and nobody on them is emailed. |
| hideCalendarEvent | Hide an event from your own calendar and leave it for everyone else, or show it again. In the app’s chat it asks first unless you asked for it. |
| findMeetingTime | When people of the workspace are busy, and the first times everyone is free for a meeting of the length you give. |
| listCalendars | Your calendars as the list beside the Calendar page shows them: the ones you keep, with their members, and the ones other members gave you access to, with whether you may read or change them. |
| createCalendar | Make a calendar of your own, such as Work or Family, with a name, a colour and a description. In the app’s chat it asks first unless you asked for it. |
| updateCalendar | Rename, describe or recolour a calendar you keep, move it in your list or make it your default. On a calendar you are a member of, only your own colour and place for it change. In the app’s chat it asks first unless you asked for it. |
| deleteCalendar | Delete a calendar you keep and every event in it. The guests of its upcoming meetings you organised are sent a cancellation unless notifyGuests is false. Your default calendar cannot be deleted, and on a calendar you are a member of you leave it instead and nobody is told. In the app’s chat it always asks first. |
| setCalendarMember | Give a member of the workspace access to a calendar you keep, to read it or to change it too, or change what they may do. In the app’s chat it always asks first. |
| removeCalendarMember | Take a member’s access to a calendar you keep away, or leave a calendar with your own member id. In the app’s chat it always asks first. |
| listTodos | The to-dos in your to-do lists and the ones members gave you access to, open ones soonest due first, or the done ones, with their due dates, priority, steps and repeats. |
| createTodo | Add a to-do to a to-do list, due on a day or at a moment, with notes, a priority, categories and a parent to make it a step. In the app’s chat it asks first unless you asked for it. |
| updateTodo | Change a to-do, check it off or open it again, or move it with its steps to another list. Checking off a repeating to-do moves it to its next date. In the app’s chat it asks first unless you asked for it. |
| deleteTodo | Delete a to-do and its steps. In the app’s chat it always asks first. |
Reading needs calendar:read and every change needs calendar:write. Anything that emails somebody also needs emails:send: inviting, updating or cancelling a meeting with attendees, every answer to an invitation, and declining a proposed time.
A client limited to some addresses sees and changes only the events one of them organises or attends, and sends only from them. It cannot manage calendars, their members, calendar links or subscriptions, which cover the whole calendar of the person it acts for.
An event that came in through a calendar import emails nobody by default. updateCalendarEvent tells its guests only with sendInvites true, and cancelCalendarEvent and respondToCalendarEvent only with notifyGuests true. No tool uploads a calendar file: upload an .ics file in the Calendars dialog of the app or with POST /calendar/imports, then read or undo the import here.
For a repeating event, updateCalendarEvent, cancelCalendarEvent and deleteCalendarEvent take scope with occurrenceStart: occurrence reaches one date, following that date and every one after it, and series all of them. findMeetingTime refuses a client limited to some addresses, since it reads whole calendars.
listCalendarEvents takes q, words that every event it returns holds in its title, its place or its organiser, so a window of up to a year finds an event by name.
Every event is in one calendar. createCalendarEvent puts it in the calendar calendarId names, or in your default calendar, updateCalendarEvent with calendarId moves it, and listCalendarEvents with calendarIds reads only those calendars. Invitations that arrive by mail go to your default calendar.
A member you give access to a calendar sees it beside their own, in the app and in every app that syncs their calendar, with a colour and a place in the list of their own. Read access shows its events, and write access lets them add, change, move and delete them too. Events you mark private stay yours, and deleting a calendar you are a member of only takes you off it.
A to-do list is a calendar of kind todos: listCalendars and createCalendar take kind todos, and members, colours and deleting work on lists as on calendars. Each to-do syncs to Reminders, Thunderbird and tasks.org over CalDAV.
Reference
listCalendarEventsgetCalendarEventgetCalendarEventIcscreateCalendarEventupdateCalendarEventcancelCalendarEventdeleteCalendarEventrespondToCalendarEventdeclineCalendarProposallistCalendarFeedscreateCalendarFeedresetCalendarFeeddeleteCalendarFeedlistCalendarSubscriptionssubscribeToCalendarupdateCalendarSubscriptionrefreshCalendarSubscriptionunsubscribeFromCalendarlistCalendarImportsgetCalendarImportundoCalendarImportcreateCalendarImporthideCalendarEventfindMeetingTimelistCalendarscreateCalendarupdateCalendardeleteCalendarsetCalendarMemberremoveCalendarMemberlistTodoscreateTodoupdateTododeleteTodo
listCalendarEvents
The calendar between two moments, as the Calendar page of the app shows it: every occurrence in the window, a repeating event once for each time it happens, sorted by start, with its event id, place, status and your answer. from and to are ISO 8601 with a zone, at most a year apart, and timezone (an IANA zone, UTC unless you say) decides what an all-day event means. When more follow, the last line gives the offset to pass back. It lists your own events: the ones you made and the ones an address of yours organises or attends. For the workspace owner, includeTeam: true adds the rest of the workspace, apart from events somebody marked private. q keeps the events whose title, place or organiser holds every word, so pass a window of up to a year with it to find an event by name. Each line names the calendar the event is in: listCalendars shows them, and calendarIds keeps only some.
Inputs
fromstringRequired- Format
date-time tostringRequired- Format
date-time timezonestring- 1 to 64 characters
includeTeambooleanqstringWords to look for in the title, the place and the organiser. Only events that hold every word come back, so search a long window, at most a year, to find an event by name.
Up to 200 characterscalendarIdsstring[]Only the events in these calendars, as ids separated by commas. Events from calendar subscriptions are left out when you name calendars.
1 to 100 itemslimitinteger- At least 1At most 200
offsetinteger- At least 0
Also available in
- API
GET /calendar/events- TypeScript
calendar.listEvents()calendar.listAllEvents()calendar.iterateEvents()- Python
calendar.list_events()calendar.list_all_events()calendar.iterate_events()- Ruby
calendar.list_eventscalendar.list_all_eventscalendar.iterate_events- PHP
calendar->listEventscalendar->listAllEventscalendar->iterateEvents- Go
Calendar.ListEventsCalendar.ListAllEventsCalendar.IterateEvents- Java
calendar().listEventscalendar().listAllEventscalendar().iterateEvents- C#
Calendar.ListEventsAsyncCalendar.ListAllEventsAsyncCalendar.IterateEventsAsync
getCalendarEvent
One calendar event in full: when it is, where, who organised it, every attendee and their answer, your own answer, how it repeats and its reminders. Pass id for an event from listCalendarEvents, or threadId for the invitation a conversation carries.
Inputs
idstring- 1 to 64 characters
threadIdstring- 1 to 256 characters
Also available in
- API
GET /calendar/events/{id}GET /threads/{id}/event- TypeScript
calendar.getEvent()threads.getEvent()- Python
calendar.get_event()threads.get_event()- Ruby
calendar.get_eventthreads.get_event- PHP
calendar->getEventthreads->getEvent- Go
Calendar.GetEventThreads.GetEvent- Java
calendar().getEventthreads().getEvent- C#
Calendar.GetEventAsyncThreads.GetEventAsync
getCalendarEventIcs
One calendar event as an iCalendar (.ics) file, the text another calendar app imports. A repeating event comes with its whole series. Pass id for an event from listCalendarEvents or getCalendarEvent.
Inputs
idstringRequired- 1 to 64 characters
Also available in
createCalendarEvent
Put an event on the calendar, as New event on the Calendar page does. start and end are ISO 8601 with a zone. With attendees, an invitation goes to each of them from the address in from, which has to be one you may send as, unless sendInvites is false. reminders takes minutes before the start, and recurrence an RRULE such as FREQ=WEEKLY;BYDAY=MO. calendarId puts it in one of your calendars, or in one you are a member of with write access, instead of your default calendar.
Inputs
summarystringRequired- 1 to 255 characters
startstringRequired- Format
date-time endstringRequired- Format
date-time descriptionstring- Up to 8000 characters
locationstring- Up to 255 characters
urlstring- Up to 2000 charactersFormat
uri meetingUrlstringA link to the video call, such as a Zoom, Meet or Teams address. It goes into the invitation, so guests see a Join button in their calendar too. Send an empty string to take it off.
Up to 2000 charactersallDaybooleantimezonestring- 1 to 64 characters
recurrencestring- Up to 512 characters
attendeesobject[]- Up to 200 items
emailstringRequired- Up to 320 charactersFormat
email namestring- Up to 128 characters
optionalboolean
remindersobject[]- Up to 5 items
minutesBeforeintegerRequired- At least 0At most 40320
actionstringDISPLAY, the default, shows a reminder; EMAIL sends one; AUDIO plays a sound.
One of"DISPLAY""EMAIL""AUDIO"
transparencystringOPAQUE, the default, shows the time as busy; TRANSPARENT leaves it free.
One of"OPAQUE""TRANSPARENT"visibilitystringPUBLIC, PRIVATE or CONFIDENTIAL: how much a calendar shared with others shows of it.
One of"PUBLIC""PRIVATE""CONFIDENTIAL"sendInvitesbooleanfromstring- Up to 320 characters
calendarIdstringThe calendar to put the event in: one you keep, or one you are a member of with write access. Your default calendar unless you say.
1 to 64 characters
Also available in
updateCalendarEvent
Change an event you organise: its title, time, place, video call link, attendees, reminders or repeating. A field left out keeps its value, and attendees replaces the whole list. Everyone invited gets the updated invitation unless sendInvites is false. An event that came in through a calendar import tells nobody unless sendInvites is true. For a repeating event, scope occurrence with occurrenceStart changes one date, following changes that date and the ones after it, and series changes them all. calendarId moves the event, with every date of it, to another calendar.
Inputs
idstringRequired- 1 to 64 characters
summarystring- 1 to 255 characters
startstring- Format
date-time endstring- Format
date-time descriptionstring- Up to 8000 characters
locationstring- Up to 255 characters
urlstring- Up to 2000 charactersFormat
uri meetingUrlstringA link to the video call, such as a Zoom, Meet or Teams address. It goes into the invitation, so guests see a Join button in their calendar too. Send an empty string to take it off.
Up to 2000 charactersallDaybooleantimezonestring- 1 to 64 characters
recurrencestring- Up to 512 characters
attendeesobject[]- Up to 200 items
emailstringRequired- Up to 320 charactersFormat
email namestring- Up to 128 characters
optionalboolean
remindersobject[]- Up to 5 items
minutesBeforeintegerRequired- At least 0At most 40320
actionstringDISPLAY, the default, shows a reminder; EMAIL sends one; AUDIO plays a sound.
One of"DISPLAY""EMAIL""AUDIO"
transparencystringOPAQUE, the default, shows the time as busy; TRANSPARENT leaves it free.
One of"OPAQUE""TRANSPARENT"visibilitystringPUBLIC, PRIVATE or CONFIDENTIAL: how much a calendar shared with others shows of it.
One of"PUBLIC""PRIVATE""CONFIDENTIAL"sendInvitesbooleanfromstring- Up to 320 characters
calendarIdstringMoves the event, with every date of a repeating one, to this calendar: one you keep, or one you are a member of with write access.
1 to 64 charactersscopestringWhich dates the change reaches when the event repeats:
occurrencefor the one date inoccurrenceStart,followingfor that date and every one after it, orseriesfor all of them. Left out, the change reaches the event or date the id names.One of"occurrence""following""series"occurrenceStartstringThe start of the date you mean, as it appears in the list of events. Needed with
occurrenceandfollowing.Formatdate-time
Also available in
cancelCalendarEvent
Call off a meeting you organise, as Cancel meeting does in the app: it stays on the calendar marked cancelled, and everyone invited is told it is off, from the address in from. An event that came in through a calendar import tells nobody unless notifyGuests is true, and notifyGuests false keeps any cancellation quiet. For a repeating meeting, scope occurrence with occurrenceStart calls off one date, and following that date and the ones after it. A chat always asks first.
Inputs
idstringRequired- 1 to 64 characters
fromstring- Up to 320 characters
notifyGuestsbooleanscopestringWhich dates the change reaches when the event repeats:
occurrencefor the one date inoccurrenceStart,followingfor that date and every one after it, orseriesfor all of them. Left out, the change reaches the event or date the id names.One of"occurrence""following""series"occurrenceStartstringThe start of the date you mean, as it appears in the list of events. Needed with
occurrenceandfollowing.Formatdate-time
Also available in
deleteCalendarEvent
Remove an event from the calendar for good, as Remove does in the app. Nobody else is told, so call off a meeting with others in it with cancelCalendarEvent instead. For a repeating event, scope occurrence with occurrenceStart removes one date, and following that date and the ones after it. A chat always asks first.
Inputs
idstringRequired- 1 to 64 characters
scopestringWhich dates the change reaches when the event repeats:
occurrencefor the one date inoccurrenceStart,followingfor that date and every one after it, orseriesfor all of them. Left out, the change reaches the event or date the id names.One of"occurrence""following""series"occurrenceStartstringThe start of the date you mean, as it appears in the list of events. Needed with
occurrenceandfollowing.Formatdate-time
Also available in
respondToCalendarEvent
Answer an invitation: ACCEPTED, DECLINED or TENTATIVE. The answer goes to the organiser by email from the invited address you may send as, or from respondingAs when the invitation went to more than one of yours. On an event that came in through a calendar import the answer is only recorded, and the organiser is told when notifyGuests is true.
Inputs
idstringRequired- 1 to 64 characters
responsestringRequired- One of
"ACCEPTED""DECLINED""TENTATIVE" respondingAsstring- Up to 320 characters
notifyGuestsbooleanproposedStartstring- Format
date-time proposedEndstring- Format
date-time
Also available in
declineCalendarProposal
Keep the original time of a meeting you organise after a guest proposed another one. The guest is told by email. To take the proposed time instead, change the event with updateCalendarEvent. A chat asks first unless you asked for it.
Inputs
idstringRequired- 1 to 64 characters
attendeestringRequired- Up to 320 charactersFormat
email fromstring- Up to 320 characters
Also available in
listCalendarFeeds
List the secret links that publish your calendar to other calendar apps such as Google Calendar, Outlook or Apple Calendar: full details or busy times only.
Inputs
Takes no input.
Also available in
createCalendarFeed
Make a secret link that publishes your calendar, to paste into Google Calendar (From URL), Outlook (Subscribe from web) or Apple Calendar. mode full shows every detail, busy only the times you are busy. Anyone with the link can read it. A chat always asks first.
Inputs
namestringRequired- 1 to 100 characters
modestringRequired- One of
"full""busy" calendarIdstringThe calendar the link publishes: one you keep. Every calendar you keep or are a member of, and the events you are invited to, unless you say.
1 to 64 characters
Also available in
resetCalendarFeed
Replace the secret in a calendar link, so the old address stops working everywhere it was shared. A chat always asks first.
Inputs
idstringRequired- 1 to 64 characters
Also available in
deleteCalendarFeed
Turn a calendar link off for good. Calendar apps subscribed to it stop getting updates. A chat always asks first.
Inputs
idstringRequired- 1 to 64 characters
Also available in
listCalendarSubscriptions
List the other calendars you subscribe to by link, such as a Google or Outlook calendar, a team rota or public holidays, with whether each is read without errors.
Inputs
Takes no input.
Also available in
subscribeToCalendar
Add another calendar by its iCalendar link (https, http or webcal), such as the secret address of a Google calendar or a published Outlook calendar. Its events show on your calendar, read-only, and are read again about every half hour. A chat always asks first.
Inputs
urlstringRequired- 1 to 2048 characters
namestring- 1 to 100 characters
colorstring- One of
"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"
Also available in
updateCalendarSubscription
Rename a calendar subscription or give it another colour.
Inputs
idstringRequired- 1 to 64 characters
namestring- 1 to 100 characters
colorstring- One of
"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"
Also available in
refreshCalendarSubscription
Read a subscribed calendar again now, and restart one that stopped after failures.
Inputs
idstringRequired- 1 to 64 characters
Also available in
unsubscribeFromCalendar
Remove a calendar subscription and every event it brought onto your calendar. A chat always asks first.
Inputs
idstringRequired- 1 to 64 characters
Also available in
listCalendarImports
The calendar imports of this workspace, newest first, as Import in the Calendars dialog of the app lists them: an .ics file somebody uploaded, the calendars inside a Google Takeout archive, or the calendars pulled from an old mailbox. Each line says how many events it found, added, found already here and left out. A member sees their own. Uploading a file takes bytes a tool call does not carry, so that is done in the app, over the REST API or with the CLI. One page at a time: when more follow, the last line gives a cursor to pass back for the next page.
Inputs
limitinteger- At least 1At most 100
cursorstring
Also available in
- API
GET /calendar/imports- TypeScript
calendar.listImports()calendar.listAllImports()calendar.iterateImports()- Python
calendar.list_imports()calendar.list_all_imports()calendar.iterate_imports()- Ruby
calendar.list_importscalendar.list_all_importscalendar.iterate_imports- PHP
calendar->listImportscalendar->listAllImportscalendar->iterateImports- Go
Calendar.ListImportsCalendar.ListAllImportsCalendar.IterateImports- Java
calendar().listImportscalendar().listAllImportscalendar().iterateImports- C#
Calendar.ListImportsAsyncCalendar.ListAllImportsAsyncCalendar.IterateImportsAsync
getCalendarImport
One calendar import by its id, with its report: the calendars the file held and how many events each gave, how many were left out and why, and the first few that were not brought in. Imported events are ordinary events, and nobody invited to one was sent anything.
Inputs
idstringRequired- 1 to 64 characters
Also available in
undoCalendarImport
Remove every event one calendar import added, as Remove imported events does in the app. Events that were on the calendar before it stay, and nobody is told. It cannot be taken back, though the same file can be imported again. A chat always asks first.
Inputs
idstringRequired- 1 to 64 characters
Also available in
createCalendarImport
Import an .ics calendar file, as Import in the Calendars dialog of the app does, with the file passed as its text. Its events become your own, nobody on them is emailed, and events already on the calendar are not added twice. It is read in the background; getCalendarImport gives the report. At most 10 MB and 25000 events. calendarId picks the calendar they go into.
Inputs
contentstringRequiredThe .ics file itself as text, the one with BEGIN:VCALENDAR in it.
1 to 10485760 charactersfileNamestring- Up to 255 characters
calendarIdstringThe calendar the imported events go into: one you keep, or one you are a member of with write access. Your default calendar unless you say.
1 to 64 characters
Also available in
- API
POST /calendar/importsPOST /contacts/imports- TypeScript
calendar.importIcs()contacts.importVcf()- Python
calendar.import_ics()contacts.import_vcf()- Ruby
calendar.import_icscontacts.import_vcf- PHP
calendar->importIcscontacts->importVcf- Go
Calendar.ImportIcsContacts.ImportVcf- Java
calendar().importIcscontacts().importVcf- C#
Calendar.ImportIcsAsyncContacts.ImportVcfAsync
hideCalendarEvent
Hide an event from your own calendar and leave it for everyone else, as Hide from my calendar does in the app, or put it back with hidden false. Use it for an invitation that reached you through a shared address, or an event you may not remove. Hiding also stops its reminders for you. A chat asks first unless you asked for it.
Inputs
idstringRequired- 1 to 64 characters
hiddenbooleanfalse shows a hidden event again.
Also available in
- API
POST /calendar/events/{id}/hidePOST /calendar/events/{id}/unhide- TypeScript
calendar.hideEvent()calendar.unhideEvent()- Python
calendar.hide_event()calendar.unhide_event()- Ruby
calendar.hide_eventcalendar.unhide_event- PHP
calendar->hideEventcalendar->unhideEvent- Go
Calendar.HideEventCalendar.UnhideEvent- Java
calendar().hideEventcalendar().unhideEvent- C#
Calendar.HideEventAsyncCalendar.UnhideEventAsync
findMeetingTime
When people are busy and the first times everyone is free, as Find a time in the event editor shows it. emails takes up to 20 addresses: one of the workspace shows the busy times of the person who holds it, and any other address is unknown. from and to are ISO 8601 with a zone, at most 31 days apart. With durationMinutes it suggests up to five times, on weekdays between 09:00 and 17:00 in timezone (UTC unless you say).
Inputs
emailsstring[]Required- 1 to 20 items
fromstringRequired- Format
date-time tostringRequired- Format
date-time timezonestring- 1 to 64 characters
durationMinutesinteger- At least 5At most 480
Also available in
listCalendars
Your calendars, as the calendar list beside the Calendar page shows them: the ones you keep, with their members, and the ones other members of the workspace gave you access to, with whether you may read or write. Each event is in one calendar, and new events and invitations go to your default one. kind todos lists your to-do lists instead.
Inputs
kindstringeventslists your calendars of events, andtodosyour to-do lists. Calendars of events unless you say.One of"events""todos"
Also available in
- API
GET /calendar/calendarsGET /calendar/calendars/{id}- TypeScript
calendar.listCalendars()calendar.getCalendar()- Python
calendar.list_calendars()calendar.get_calendar()- Ruby
calendar.list_calendarscalendar.get_calendar- PHP
calendar->listCalendarscalendar->getCalendar- Go
Calendar.ListCalendarsCalendar.GetCalendar- Java
calendar().listCalendarscalendar().getCalendar- C#
Calendar.ListCalendarsAsyncCalendar.GetCalendarAsync
createCalendar
Make a new calendar of your own, such as Work or Family, with a name, a colour and a description. Events go into it when you name it in createCalendarEvent. kind todos makes a to-do list instead, for createTodo.
Inputs
namestringRequiredThe name the apps show for the calendar, up to 100 characters.
1 to 100 characterskindstringeventsfor a calendar of events, ortodosfor a to-do list. A calendar of events unless you say.One of"events""todos"colorstringThe colour its events are drawn in: blue, sky, teal, green, lime, yellow, orange, red, pink, purple or gray.
One of"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"descriptionstringWhat the calendar is for, up to 1,000 characters. null clears it.
Can be nullUp to 1000 characters
Also available in
updateCalendar
Rename a calendar you keep, describe it, give it another colour, move it in your list or make it your default. For a calendar you are a member of, only your own colour and position for it change.
Inputs
idstringRequiredA calendar id,
cln_followed by 24 hex characters, as the list of calendars shows it.1 to 64 charactersnamestringThe name the apps show for the calendar, up to 100 characters.
1 to 100 characterscolorstringThe colour its events are drawn in: blue, sky, teal, green, lime, yellow, orange, red, pink, purple or gray.
One of"blue""sky""teal""green""lime""yellow""orange""red""pink""purple""gray"descriptionstringWhat the calendar is for, up to 1,000 characters. null clears it.
Can be nullUp to 1000 characterspositionintegerWhere the calendar sits in your list, from 0 at the top. Your own calendars and the ones you are a member of are ordered apart.
At least 0At most 10000isDefaultbooleantrue makes it your default calendar, where new events and invitations go. A calendar stops being the default only when another one becomes it.
Also available in
deleteCalendar
Delete a calendar you keep. Deleting a calendar deletes the events in it. Unless notifyGuests is false, everyone invited to an upcoming meeting you organised in it is sent a cancellation from the address that invited them, as Cancel meeting does. A meeting that came in through a calendar import is cancelled quietly unless notifyGuests is true. Your default calendar cannot be deleted. A to-do list goes with its to-dos. For a calendar you are a member of, you leave it, it stays with its keeper and nobody is told. A chat always asks first.
Inputs
idstringRequiredA calendar id,
cln_followed by 24 hex characters, as the list of calendars shows it.1 to 64 charactersnotifyGuestsbooleanfalse deletes the calendar without telling anyone. Left out or true, the guests of every upcoming meeting you organised in it are sent a cancellation, and true tells the guests of imported meetings too.
Also available in
setCalendarMember
Give a member of the workspace access to a calendar you keep, or change what they may do: read to see its events, write to add, change, move and remove them too. Their apps show it beside their own calendars. listWorkspaceMembers gives member ids. A chat always asks first.
Inputs
idstringRequiredA calendar id,
cln_followed by 24 hex characters, as the list of calendars shows it.1 to 64 charactersmemberIdstringRequiredThe id of a workspace member, as the list of members shows it.
1 to 64 charactersaccessstringRequiredreadto see it, orwriteto add, change and delete what is in it too.One of"read""write"
Also available in
removeCalendarMember
Take away a member’s access to a calendar you keep. Pass your own member id to leave a calendar you are a member of. A chat always asks first.
Inputs
idstringRequiredA calendar id,
cln_followed by 24 hex characters, as the list of calendars shows it.1 to 64 charactersmemberIdstringRequiredThe id of a workspace member, as the list of members shows it.
1 to 64 characters
Also available in
- API
DELETE /calendar/calendars/{id}/members/{memberId}- TypeScript
calendar.removeCalendarMember()- Python
calendar.remove_calendar_member()- Ruby
calendar.remove_calendar_member- PHP
calendar->removeCalendarMember- Go
Calendar.RemoveCalendarMember- Java
calendar().removeCalendarMember- C#
Calendar.RemoveCalendarMemberAsync
listTodos
The to-dos in your to-do lists and the ones other members gave you access to, as the To-dos view of the Calendar page shows them. listCalendars with kind todos names the lists. Open to-dos come soonest due first, with the ones without a due date last. Done ones come most recently done first, and all lists the newest first. One page at a time: when more follow, the last line gives a cursor to pass back.
Inputs
calendarIdsstring[]Only the to-dos in these to-do lists, as ids separated by commas. Every to-do list you keep or are a member of unless you say.
1 to 100 itemsstatestringopenfor to-dos still to do,donefor completed and cancelled ones, orall. Open ones unless you say.One of"open""done""all"dueBeforestringOnly to-dos due before this moment, as an ISO 8601 date-time with an offset.
Formatdate-timedueAfterstringOnly to-dos due at or after this moment, as an ISO 8601 date-time with an offset.
Formatdate-timelimitinteger- At least 1At most 500
cursorstringA to-do id,
tdo_followed by 24 hex characters.1 to 64 characters
Also available in
- API
GET /calendar/todosGET /calendar/todos/{id}- TypeScript
calendar.listTodos()calendar.listAllTodos()calendar.iterateTodos()calendar.getTodo()- Python
calendar.list_todos()calendar.list_all_todos()calendar.iterate_todos()calendar.get_todo()- Ruby
calendar.list_todoscalendar.list_all_todoscalendar.iterate_todoscalendar.get_todo- PHP
calendar->listTodoscalendar->listAllTodoscalendar->iterateTodoscalendar->getTodo- Go
Calendar.ListTodosCalendar.ListAllTodosCalendar.IterateTodosCalendar.GetTodo- Java
calendar().listTodoscalendar().listAllTodoscalendar().iterateTodoscalendar().getTodo- C#
Calendar.ListTodosAsyncCalendar.ListAllTodosAsyncCalendar.IterateTodosAsyncCalendar.GetTodoAsync
createTodo
Add a to-do to one of your to-do lists, or to one you are a member of with write access, with a due day or moment, notes, a priority and categories. parentId makes it a step of another to-do in the same list. It goes in your default to-do list unless you name one.
Inputs
titlestringRequiredWhat has to be done, 1 to 500 characters.
1 to 500 characterscalendarIdstringThe to-do list to put it in: one you keep, or one you are a member of with write access. Your default to-do list unless you say.
1 to 64 charactersnotesstringNotes on the to-do, up to 8,000 characters. null clears them.
Can be nullUp to 8000 charactersstatusstringNEEDS-ACTIONwhile it is open,IN-PROCESSonce it is started,COMPLETEDwhen it is done andCANCELLEDwhen it will not be done. Completing a repeating to-do moves it to its next date and keeps it open.One of"NEEDS-ACTION""IN-PROCESS""COMPLETED""CANCELLED"startstringWhen work on it can start, in the same form as
due: both are days, or both are moments. null clears it.Can be nullduestringWhen it is due: a day as
YYYY-MM-DD, or a moment as an ISO 8601 date-time with an offset. null clears it.Can be nulltimezonestringThe IANA time zone a
dueorstartmoment is written in for calendar apps, such asEurope/Berlin. UTC unless you say. null clears it.Can be null1 to 64 characterspriorityintegerFrom 1, the most urgent, to 9, the least. 0 means none. Apps show 1 to 4 as high, 5 as medium and 6 to 9 as low.
At least 0At most 9percentCompleteintegerHow far along it is, from 0 to 100. null clears it.
Can be nullAt least 0At most 100categoriesstring[]Labels for the to-do, up to 20 of up to 64 characters each, as calendar apps show its categories.
Up to 20 itemsparentIdstringMakes it a step of another to-do in the same list, by that to-do id. null makes it stand on its own again.
Can be null1 to 64 charactersrecurrencestringAn RRULE, such as
FREQ=WEEKLY;BYDAY=MO, that makes it repeat from its start or due date. null stops it repeating.Can be nullUp to 512 characters
Also available in
updateTodo
Change a to-do, check it off with status COMPLETED or open it again with NEEDS-ACTION. Checking off a repeating to-do moves it to its next date and keeps it open. calendarId moves it, with its steps, to another to-do list. Send only what changes.
Inputs
idstringRequiredA to-do id,
tdo_followed by 24 hex characters.1 to 64 characterstitlestringWhat has to be done, 1 to 500 characters.
1 to 500 characterscalendarIdstringMoves the to-do, with its steps, to this to-do list: one you keep, or one you are a member of with write access.
1 to 64 charactersnotesstringNotes on the to-do, up to 8,000 characters. null clears them.
Can be nullUp to 8000 charactersstatusstringNEEDS-ACTIONwhile it is open,IN-PROCESSonce it is started,COMPLETEDwhen it is done andCANCELLEDwhen it will not be done. Completing a repeating to-do moves it to its next date and keeps it open.One of"NEEDS-ACTION""IN-PROCESS""COMPLETED""CANCELLED"startstringWhen work on it can start, in the same form as
due: both are days, or both are moments. null clears it.Can be nullduestringWhen it is due: a day as
YYYY-MM-DD, or a moment as an ISO 8601 date-time with an offset. null clears it.Can be nulltimezonestringThe IANA time zone a
dueorstartmoment is written in for calendar apps, such asEurope/Berlin. UTC unless you say. null clears it.Can be null1 to 64 characterspriorityintegerFrom 1, the most urgent, to 9, the least. 0 means none. Apps show 1 to 4 as high, 5 as medium and 6 to 9 as low.
At least 0At most 9percentCompleteintegerHow far along it is, from 0 to 100. null clears it.
Can be nullAt least 0At most 100categoriesstring[]Labels for the to-do, up to 20 of up to 64 characters each, as calendar apps show its categories.
Up to 20 itemsparentIdstringMakes it a step of another to-do in the same list, by that to-do id. null makes it stand on its own again.
Can be null1 to 64 charactersrecurrencestringAn RRULE, such as
FREQ=WEEKLY;BYDAY=MO, that makes it repeat from its start or due date. null stops it repeating.Can be nullUp to 512 characters
Also available in
deleteTodo
Delete a to-do. Deleting a to-do deletes its steps too, and calendar apps that sync the list drop them on their next sync. A chat always asks first.
Inputs
idstringRequiredA to-do id,
tdo_followed by 24 hex characters.1 to 64 characters