# calendar.updated

Source: https://developer.nylas.com/docs/reference/notifications/calendar/calendar-updated/

Sent when the name, description, location, or timezone of a calendar changes.

## data.object fields

- `grant_id` (string) - Unique identifier for the grant that owns this calendar.
- `description` (string) - Description of the calendar.
- `id` (string) **(required)** - Unique identifier for the calendar.
- `metadata` (object) - Key-value pairs of custom metadata attached to the calendar.
- `is_primary` (boolean) - Whether this is the user's primary calendar.
- `location` (string) - Geographic location associated with the calendar.
- `name` (string) - Display name of the calendar.
- `object` (string) **(required)** (calendar) - Object type identifier.
- `read_only` (boolean) - Whether the calendar is read-only for the authenticated user.
- `timezone` (string) - IANA timezone of the calendar (e.g. America/New_York).
- `is_owned_by_user` (boolean) - Whether the authenticated user owns this calendar.
- `hex_color` (string) - Background color of the calendar in hex format. May be omitted if not set by the provider.
- `hex_foreground_color` (string) - Foreground (text) color of the calendar in hex format. May be omitted if not set by the provider.

## Example payload

```json
{
  "specversion": "1.0",
  "type": "calendar.updated",
  "source": "/google/events/incremental",
  "id": "<WEBHOOK_ID>",
  "data": {
    "application_id": "<NYLAS_APPLICATION_ID>",
    "object": {
      "grant_id": "<NYLAS_GRANT_ID>",
      "description": "Personal calendar",
      "id": "<CALENDAR_ID>",
      "metadata": {
        "key1": "all-meetings",
        "key2": "on-site"
      },
      "is_primary": false,
      "location": "New York",
      "name": "Personal",
      "object": "calendar",
      "read_only": false,
      "timezone": "America/New_York",
      "is_owned_by_user": false
    }
  },
  "webhook_delivery_attempt": 1
}
```
