Batch
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
POST | |
GET | |
POST | |
GET | |
POST | |
GET | |
GET | |
POST | |
GET | |
POST | |
GET |
Retrieve batch exports test retrieve
Required API key scopes
INTERNALPath parameters
- organization_idstring
Example request
GET /api /organizations /:organization_id /batch_exports /testExample response
Status 200 No response body
List all batch exports list
Required API key scopes
batch_export:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /batch_exportsExample response
Status 200
List all batch exports list
Required API key scopes
batch_export:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /batch_exportsExample response
Status 200
Create batch exports create
Required API key scopes
batch_export:writePath parameters
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
- timezone
- offset_dayinteger
- offset_hourinteger
Response
Example request
POST /api /projects /:project_id /batch_exportsExample response
Status 201
Create batch exports create
Required API key scopes
batch_export:writePath parameters
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
- timezone
- offset_dayinteger
- offset_hourinteger
Response
Example request
POST /api /projects /:project_id /batch_exportsExample response
Status 201
List all batch exports backfills list
ViewSet for BatchExportBackfill models.
Allows creating and reading backfills, but not updating or deleting them.
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
- project_idstring
Query parameters
- cursorstring
- orderingstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /backfillsExample response
Status 200
Create batch exports backfills create
Create a new backfill for a BatchExport.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstring
- project_idstring
Request parameters
- start_atstring
- end_atstring
- status
- finished_atstring
- teaminteger
- batch_exportstring
Response
Example request
POST /api /projects /:project_id /batch_exports /:batch_export_id /backfillsExample response
Status 201
Retrieve batch exports backfills retrieve
ViewSet for BatchExportBackfill models.
Allows creating and reading backfills, but not updating or deleting them.
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /backfills /:idExample response
Status 200
Create batch exports backfills cancel create
Cancel a batch export backfill.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstring
- idstring
- project_idstring
Request parameters
- start_atstring
- end_atstring
- status
- finished_atstring
- teaminteger
- batch_exportstring
Example request
POST /api /projects /:project_id /batch_exports /:batch_export_id /backfills /:id /cancelExample response
Status 200 No response body
List all batch exports runs list
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
- project_idstring
Query parameters
- cursorstring
- orderingstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /runsExample response
Status 200
List all batch exports runs list
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
- project_idstring
Query parameters
- cursorstring
- orderingstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /runsExample response
Status 200
Retrieve batch exports runs retrieve
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /runs /:idExample response
Status 200
Retrieve batch exports runs retrieve
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /runs /:idExample response
Status 200
Create batch exports runs cancel create
Cancel a batch export run.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstring
- idstring
- project_idstring
Request parameters
- status
- records_completedinteger
- latest_errorstring
- data_interval_startstring
- data_interval_endstring
- cursorstring
- finished_atstring
- records_total_countinteger
- bytes_exportedinteger
- backfillstring
Example request
POST /api /projects /:project_id /batch_exports /:batch_export_id /runs /:id /cancelExample response
Status 200 No response body
Create batch exports runs cancel create
Cancel a batch export run.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstring
- idstring
- project_idstring
Request parameters
- status
- records_completedinteger
- latest_errorstring
- data_interval_startstring
- data_interval_endstring
- cursorstring
- finished_atstring
- records_total_countinteger
- bytes_exportedinteger
- backfillstring
Example request
POST /api /projects /:project_id /batch_exports /:batch_export_id /runs /:id /cancelExample response
Status 200 No response body
Retrieve batch exports runs logs retrieve
Path parameters
- batch_export_idstring
- idstring
- project_idstring
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /runs /:id /logsExample response
Status 200 No response body
Retrieve batch exports runs logs retrieve
Path parameters
- batch_export_idstring
- idstring
- project_idstring
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /runs /:id /logsExample response
Status 200 No response body
Create batch exports runs retry create
Retry a batch export run.
We use the same underlying mechanism as when backfilling a batch export, as retrying a run is the same as backfilling one run.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstring
- idstring
- project_idstring
Request parameters
- status
- records_completedinteger
- latest_errorstring
- data_interval_startstring
- data_interval_endstring
- cursorstring
- finished_atstring
- records_total_countinteger
- bytes_exportedinteger
- backfillstring
Example request
POST /api /projects /:project_id /batch_exports /:batch_export_id /runs /:id /retryExample response
Status 200 No response body
Create batch exports runs retry create
Retry a batch export run.
We use the same underlying mechanism as when backfilling a batch export, as retrying a run is the same as backfilling one run.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstring
- idstring
- project_idstring
Request parameters
- status
- records_completedinteger
- latest_errorstring
- data_interval_startstring
- data_interval_endstring
- cursorstring
- finished_atstring
- records_total_countinteger
- bytes_exportedinteger
- backfillstring
Example request
POST /api /projects /:project_id /batch_exports /:batch_export_id /runs /:id /retryExample response
Status 200 No response body
Retrieve batch exports retrieve
Required API key scopes
batch_export:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:id