{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oviond-com/json-schema/oviond-com-update-report-request-schema.json",
  "title": "UpdateReportRequest",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oviond-com-openapi.json#/components/schemas/UpdateReportRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "theme_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "date_range": {
      "allOf": [
        {
          "$ref": "#/$defs/DateRange"
        },
        {
          "type": [
            "object",
            "null"
          ]
        }
      ]
    },
    "logo_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "auto_refresh_enabled": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_cover_page": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_cover_page_logo": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_cover_page_client_logo": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_cover_page_agency_logo": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_cover_page_name": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_cover_page_date": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_cover_page_bg_image": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_header": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_header_logo": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_header_name": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_header_date": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_page_numbers": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_table_of_contents": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_date": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_thank_you": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_thank_you_bg_image": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_thank_you_logo": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_thank_you_client_logo": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_thank_you_agency_logo": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_thank_you_heading": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_thank_you_message": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "orientation": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "portrait",
        "landscape"
      ]
    },
    "pages": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "additionalProperties": {}
      },
      "minItems": 1
    },
    "is_active": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "editing": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "auto_refresh_interval_hours": {
      "anyOf": [
        {
          "type": "number",
          "enum": [
            1
          ]
        },
        {
          "type": "number",
          "enum": [
            24
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Auto-refresh cadence: 1 = hourly, 24 = daily"
    },
    "password_enabled": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "password": {
      "type": [
        "string",
        "null"
      ]
    },
    "pdf_enabled": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "paper_size": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "a4",
        "letter"
      ]
    },
    "branding_source": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "inherit",
        "client",
        "agency"
      ]
    },
    "show_dashboard_navigation": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "cover_page_title": {
      "type": [
        "string",
        "null"
      ]
    },
    "cover_page_subtitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "cover_page_pattern_id": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "diagonal-corner-bands",
        "side-rail",
        "bottom-horizon-band",
        "diagonal-velocity",
        "flowing-waves",
        "orbit-frame",
        "geo-forms",
        "prism-tiles",
        "folded-corners",
        "mosaic-frame"
      ]
    },
    "cover_page_manual_bg_image_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "thank_you_page_title": {
      "type": [
        "string",
        "null"
      ]
    },
    "thank_you_page_subtitle": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "DateRange": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "enum": [
            "Today",
            "Yesterday",
            "Last 7 Days",
            "Last 30 Days",
            "Last 60 Days",
            "Custom Days",
            "This Month",
            "Last Month",
            "Custom Months",
            "Last 2 Months",
            "Last 3 Months",
            "Last 12 Months",
            "This Year",
            "Last Year",
            "Custom"
          ]
        },
        "compare": {
          "type": "string",
          "enum": [
            "None",
            "Period",
            "Month",
            "Year",
            "Custom"
          ]
        },
        "include_today": {
          "type": "boolean"
        },
        "current_start": {
          "type": "string"
        },
        "current_end": {
          "type": "string"
        },
        "previous_start": {
          "type": "string"
        },
        "previous_end": {
          "type": "string"
        },
        "custom_days": {
          "type": "number"
        },
        "custom_months": {
          "type": "number"
        }
      }
    }
  }
}