addedInput schema / properties / digest
Added value: +{
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "audience_id": {
+ "description": "Optional audience the digest is scoped to",
+ "type": "string"
+ },
+ "categories": {
+ "description": "Retention rules per category key. Defaults to a single `digest` category.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "category_key": {
+ "description": "Key identifying the category within the digest",
+ "type": "string"
+ },
+ "limit": {
+ "description": "How many collected events reach the rendered digest. Defaults to 10.",
+ "type": "integer"
+ },
+ "retain": {
+ "description": "Which collected events survive the limit",
+ "enum": [
+ "FIRST",
+ "LAST",
+ "HIGHEST",
+ "LOWEST",
+ "NONE"
+ ],
+ "type": "string"
+ },
+ "sort_key": {
+ "description": "Data key to rank events by. Required when retain is HIGHEST or LOWEST.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "category_key"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schedules": {
+ "description": "The cadences this digest delivers on. At least one is required.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "day_of_month": {
+ "description": "Required when frequency is monthly",
+ "type": "integer"
+ },
+ "day_of_week": {
+ "description": "Required when frequency is weekly",
+ "enum": [
+ "sunday",
+ "monday",
+ "tuesday",
+ "wednesday",
+ "thursday",
+ "friday",
+ "saturday"
+ ],
+ "type": "string"
+ },
+ "days_of_week": {
+ "description": "Required when frequency is custom_days",
+ "items": {
+ "enum": [
+ "sunday",
+ "monday",
+ "tuesday",
+ "wednesday",
+ "thursday",
+ "friday",
+ "saturday"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "disabled": {
+ "description": "Whether the schedule is disabled",
+ "type": "boolean"
+ },
+ "frequency": {
+ "description": "How often the digest delivers. `instant` delivers each event immediately.",
+ "enum": [
+ "instant",
+ "daily",
+ "weekdays",
+ "weekly",
+ "custom_days",
+ "monthly"
+ ],
+ "type": "string"
+ },
+ "is_default": {
+ "description": "The schedule recipients are placed on when they have not chosen one",
+ "type": "boolean"
+ },
+ "schedule_id": {
+ "description": "Id of an existing schedule to update. Omit to create a new one.",
+ "type": "string"
+ },
+ "time": {
+ "description": "24-hour local delivery time, HH:MM. Required for every frequency except instant.",
+ "type": "string"
+ },
+ "timezone": {
+ "description": "IANA timezone for `time` and the day fields, e.g. America/New_York",
+ "type": "string"
+ }
+ },
+ "required": [
+ "frequency"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "template_id": {
+ "description": "The notification template that renders the digest",
+ "type": "string"
+ },
+ "trigger_empty": {
+ "description": "Deliver the digest even when nothing was collected",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "template_id",
+ "schedules"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Batch this topic's notifications into a scheduled digest. Omit to leave any existing digest untouched; pass null to turn it off."
+}