PostHog · Schema

PatchedBatchExport

Serializer for a BatchExport model.

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
id string
team_id integer The team this belongs to.
name string A human-readable name for this BatchExport.
model object Which model this BatchExport is exporting. * `events` - Events * `persons` - Persons * `sessions` - Sessions
destination object
interval object
paused boolean Whether this BatchExport is paused or not.
created_at string The timestamp at which this BatchExport was created.
last_updated_at string The timestamp at which this BatchExport was last updated.
last_paused_at string The timestamp at which this BatchExport was last paused.
start_at string Time before which any Batch Export runs won't be triggered.
end_at string Time after which any Batch Export runs won't be triggered.
latest_runs array
hogql_query string
schema object A schema of custom fields to select when exporting data.
filters object
timezone object
offset_day integer
offset_hour integer
View JSON Schema on GitHub

JSON Schema

posthog-patchedbatchexport-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PatchedBatchExport",
  "title": "PatchedBatchExport",
  "type": "object",
  "description": "Serializer for a BatchExport model.",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "team_id": {
      "type": "integer",
      "description": "The team this belongs to.",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "A human-readable name for this BatchExport."
    },
    "model": {
      "nullable": true,
      "description": "Which model this BatchExport is exporting.\n\n* `events` - Events\n* `persons` - Persons\n* `sessions` - Sessions",
      "oneOf": [
        {
          "$ref": "#/components/schemas/ModelEnum"
        },
        {
          "$ref": "#/components/schemas/BlankEnum"
        },
        {
          "$ref": "#/components/schemas/NullEnum"
        }
      ]
    },
    "destination": {
      "$ref": "#/components/schemas/BatchExportDestination"
    },
    "interval": {
      "$ref": "#/components/schemas/IntervalEnum"
    },
    "paused": {
      "type": "boolean",
      "description": "Whether this BatchExport is paused or not."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "The timestamp at which this BatchExport was created."
    },
    "last_updated_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "The timestamp at which this BatchExport was last updated."
    },
    "last_paused_at": {
      "type": "string",
      "format": "date-time",
      "nullable": true,
      "description": "The timestamp at which this BatchExport was last paused."
    },
    "start_at": {
      "type": "string",
      "format": "date-time",
      "nullable": true,
      "description": "Time before which any Batch Export runs won't be triggered."
    },
    "end_at": {
      "type": "string",
      "format": "date-time",
      "nullable": true,
      "description": "Time after which any Batch Export runs won't be triggered."
    },
    "latest_runs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/BatchExportRun"
      },
      "readOnly": true
    },
    "hogql_query": {
      "type": "string"
    },
    "schema": {
      "readOnly": true,
      "nullable": true,
      "description": "A schema of custom fields to select when exporting data."
    },
    "filters": {
      "nullable": true
    },
    "timezone": {
      "nullable": true,
      "oneOf": [
        {
          "$ref": "#/components/schemas/TimezoneEnum"
        },
        {
          "$ref": "#/components/schemas/NullEnum"
        }
      ]
    },
    "offset_day": {
      "type": "integer",
      "maximum": 6,
      "minimum": 0,
      "nullable": true
    },
    "offset_hour": {
      "type": "integer",
      "maximum": 23,
      "minimum": 0,
      "nullable": true
    }
  }
}