calendar_update_calendar
Rename an existing iCloud calendar's display name without affecting its events or ID. Use when a calendar needs a new name, not for moving events or creating/deleting calendars.
Instructions
Rename one of the owner's calendars; its events and id stay as they are.
Use when: the owner wants a calendar called something else. Not for moving events between calendars (use calendar_move_event), creating a calendar (use calendar_create_calendar) or deleting one (use calendar_delete_calendar). Parameters: calendar is the current name (any case) or the id from calendar_list_calendars. new_name is 1 to 100 characters on one line; runs of whitespace are collapsed. Behavior:
Changes only the display name.
Refused when another calendar already has new_name in any case; changing only the capitalisation of the same calendar is allowed.
Repeating the call with the same name changes nothing further.
Other calendar tools see the new name at once; the owner's devices after sync. Returns: {renamed: true, from, to} with the old and new names. Errors: an unknown calendar (the message lists valid names), a name already taken, or an invalid name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calendar | Yes | The calendar to rename, by name. | |
| new_name | Yes | Its new name. |