Batch
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
POST |
Create batch exports runs cancel
Cancel a batch export run.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstring
- idstring
Request parameters
- status
- records_completedintegernull
- records_failedintegernull
- latest_errorstringnull
- data_interval_startstringnull
- data_interval_endstring
- cursorstringnull
- finished_atstringnull
- records_total_countintegernull
- bytes_exportedintegernull
- batch_export_on_demandstringnull
- backfillstringnull
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
Cancel a batch export run.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstring
- idstring
Request parameters
- status
- records_completedintegernull
- records_failedintegernull
- latest_errorstringnull
- data_interval_startstringnull
- data_interval_endstring
- cursorstringnull
- finished_atstringnull
- records_total_countintegernull
- bytes_exportedintegernull
- batch_export_on_demandstringnull
- backfillstringnull
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
Path parameters
- batch_export_idstring
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
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
Path parameters
- batch_export_idstring
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
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
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
Request parameters
- status
- records_completedintegernull
- records_failedintegernull
- latest_errorstringnull
- data_interval_startstringnull
- data_interval_endstring
- cursorstringnull
- finished_atstringnull
- records_total_countintegernull
- bytes_exportedintegernull
- batch_export_on_demandstringnull
- backfillstringnull
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
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
Request parameters
- status
- records_completedintegernull
- records_failedintegernull
- latest_errorstringnull
- data_interval_startstringnull
- data_interval_endstring
- cursorstringnull
- finished_atstringnull
- records_total_countintegernull
- bytes_exportedintegernull
- batch_export_on_demandstringnull
- backfillstringnull
Example request
POST /api /projects /:project_id /batch_exports /:batch_export_id /runs /:id /retryExample response
Status 200 No response body
Retrieve batch exports
Required API key scopes
batch_export:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:idExample response
Status 200
RESPONSE
Retrieve batch exports
Required API key scopes
batch_export:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:idExample response
Status 200
RESPONSE
Update batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- hogql_querystring
- filters
- timezonestringnull
- offset_dayintegernull
- offset_hourintegernull
Response
Example request
PATCH /api /projects /:project_id /batch_exports /:idExample response
Status 200
RESPONSE
Update batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- hogql_querystring
- filters
- timezonestringnull
- offset_dayintegernull
- offset_hourintegernull
Response
Example request
PATCH /api /projects /:project_id /batch_exports /:idExample response
Status 200
RESPONSE
Delete batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /batch_exports /:idExample response
Status 204 No response body
Delete batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /batch_exports /:idExample response
Status 204 No response body
Retrieve batch exports logs
Path parameters
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
Example request
GET /api /projects /:project_id /batch_exports /:id /logsExample response
Status 200 No response body
Retrieve batch exports logs
Path parameters
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
Example request
GET /api /projects /:project_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
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstringnull
- start_atstringnull
- end_atstringnull
- hogql_querystring
- filters
- timezone
- offset_dayintegernull
- offset_hourintegernull
Example request
POST /api /projects /:project_id /batch_exports /:id /pauseExample response
Status 200 No response body
Create batch exports pause
Pause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstringnull
- start_atstringnull
- end_atstringnull
- hogql_querystring
- filters
- timezone
- offset_dayintegernull
- offset_hourintegernull
Example request
POST /api /projects /:project_id /batch_exports /:id /pauseExample response
Status 200 No response body
Create batch exports run test step
Required API key scopes
batch_export:writePath parameters
- idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstringnull
- start_atstringnull
- end_atstringnull
- hogql_querystring
- filters
- timezone
- offset_dayintegernull
- offset_hourintegernull
Example request
POST /api /projects /:project_id /batch_exports /:id /run_test_stepExample response
Status 200 No response body
Create batch exports run test step
Required API key scopes
batch_export:writePath parameters
- idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstringnull
- start_atstringnull
- end_atstringnull
- hogql_querystring
- filters
- timezone
- offset_dayintegernull
- offset_hourintegernull
Example request
POST /api /projects /:project_id /batch_exports /:id /run_test_step