Batch exports
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
POST | |
POST | |
POST | |
POST | |
GET | |
GET | |
POST | |
GET | |
POST | |
GET | |
POST | |
GET |
List all batch exports
Required API key scopes
batch_export:readPath parameters
- organization_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /batch_exportsExample response
Status 200
RESPONSE
Create batch exports
Required API key scopes
batch_export:writePath parameters
- organization_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Response
Example request
POST /api /organizations /:organization_id /batch_exportsExample response
Status 201
RESPONSE
Retrieve batch exports
Required API key scopes
batch_export:readPath parameters
- idstring
- organization_idstring
Response
Example request
GET /api /organizations /:organization_id /batch_exports /:idExample response
Status 200
RESPONSE
Update batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
- organization_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Response
Example request
PATCH /api /organizations /:organization_id /batch_exports /:idExample response
Status 200
RESPONSE
Delete batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
- organization_idstring
Example request
DELETE /api /organizations /:organization_id /batch_exports /:idExample response
Status 204 No response body
Create batch exports backfill
Trigger a backfill for a BatchExport.
Note: This endpoint is deprecated. Please use POST /batch_exports/<id>/backfills/ instead.
Required API key scopes
batch_export:writePath parameters
- idstring
- organization_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /organizations /:organization_id /batch_exports /:id /backfillExample response
Status 200 No response body
Retrieve batch exports logs
Path parameters
- idstring
- organization_idstring
Example request
GET /api /organizations /:organization_id /batch_exports /:id /logsExample response
Status 200 No response body
Create batch exports pause
Pause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstring
- organization_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /organizations /:organization_id /batch_exports /:id /pauseExample response
Status 200 No response body
Create batch exports run test step
Required API key scopes
INTERNALPath parameters
- idstring
- organization_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /organizations /:organization_id /batch_exports /:id /run_test_stepExample response
Status 200 No response body
Create batch exports unpause
Unpause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstring
- organization_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /organizations /:organization_id /batch_exports /:id /unpauseExample response
Status 200 No response body
Create batch exports run test step new
Required API key scopes
INTERNALPath parameters
- organization_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /organizations /:organization_id /batch_exports /run_test_step_newExample response
Status 200 No response body
Retrieve batch exports test
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
RESPONSE
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
Response
Example request
POST /api /projects /:project_id /batch_exportsExample response
Status 201
RESPONSE
List all batch exports backfills
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
RESPONSE
Create batch exports backfills
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
RESPONSE
Retrieve batch exports backfills
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
RESPONSE
Create batch exports backfills cancel
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
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
RESPONSE