{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cm-com/json-schema/cm-com-update-analytics-report-subscription-dto-schema.json",
  "title": "UpdateAnalyticsReportSubscriptionDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-analytics-report-subscriptions-api-openapi.yml#/components/schemas/UpdateAnalyticsReportSubscriptionDto",
  "type": "object",
  "properties": {
    "channel": {
      "type": "string",
      "enum": [
        "EMAIL",
        "WHATSAPP",
        "SMS"
      ]
    },
    "emails": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "phoneNumbers": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "filterPresetUuids": {
      "minItems": 1,
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dateRangeOption": {
      "type": "string",
      "enum": [
        "TODAY",
        "WEEK",
        "MONTH",
        "ABSOLUTE"
      ]
    },
    "intervalMinutes": {
      "type": "number",
      "enum": [
        15,
        30,
        60
      ]
    },
    "enabled": {
      "type": "boolean",
      "description": "Reactivate or pause the subscription without deleting it."
    },
    "expiresAt": {
      "type": "string",
      "description": "New end date. Must be in the future and at most 7 days from now."
    }
  }
}