provider batch_exports POST /api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/
@utdk/posthog /api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/
environments_batch_exports_backfills_create
Create a new backfill for a BatchExport.
batch_export_id path required
string
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsBatchExportsBackfillsCreate
POST/api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/
Create a new backfill for a BatchExport.

Parameters

required
required

Deprecated. Use /api/projects/{project_id}/ instead.

Input

required
required

The start of the data interval.

The end of the data interval.

required

The status of this backfill. * `Cancelled` - Cancelled * `Completed` - Completed * `ContinuedAsNew` - Continued As New * `Failed` - Failed * `FailedRetryable` - Failed Retryable * `Terminated` - Terminated * `TimedOut` - Timedout * `Running` - Running * `Starting` - Starting

required

The timestamp at which this BatchExportBackfill was created.

The timestamp at which this BatchExportBackfill finished, successfully or not.

required

The timestamp at which this BatchExportBackfill was last updated.

The total number of records to export. Initially estimated, updated with actual count after completion.

The actual start time after adjustment for earliest available data. May differ from start_at if user requested a date before data exists.

required

The team this belongs to.

required

The BatchExport this backfill belongs to.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsBatchExportsBackfillsCreate()