stop_sharing_calendar and share again for a new link. Langmail does not send the link to anyone; to email it, stage a draft with create_draft.
There is one share per calendar and person. Sharing the same calendar with the same person again changes the level and keeps their existing link working.
Parameters
The calendar to share: its name, matched ignoring case, or the CalDAV URL
list_calendars returns. Use the URL when two calendars share a name.Who the calendar is shared with, as the user names them:
"Sam", "my partner". 1–100 characters. A label only, matched ignoring case when the same calendar is shared again.busy: the person sees only when the user is busy, every event titled “Busy”. full: titles, times, locations, notes and guests. Private events show as busy at either level, and free events are left out of a busy-only share.Example
Call
Result
"Personal" is now shared with Sam at full details (was busy times only) and that Sam’s existing link keeps working, without a new link.
Errors
Every error leaves the shares unchanged.No calendar named "…"orNo calendar at …— nothing matched. The error lists every calendar with its URL.2 calendars are named "…"— pass the URL of the one you mean.Calendar sharing is not set up on this server.