Batch
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
PATCH | |
DELETE | |
GET | |
POST | |
POST | |
POST | |
POST | |
GET | |
GET | |
POST |
Update environments 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 /environments /:environment_id /batch_exports /:idExample response
Status 200
RESPONSE
Update environments 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 /environments /:environment_id /batch_exports /:idExample response
Status 200
RESPONSE
Delete environments batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
Example request
DELETE /api /environments /:environment_id /batch_exports /:idExample response
Status 204 No response body
Delete environments batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
Example request
DELETE /api /environments /:environment_id /batch_exports /:idExample response
Status 204 No response body
Retrieve environments batch exports logs
Path parameters
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
Example request
GET /api /environments /:environment_id /batch_exports /:id /logsExample response
Status 200 No response body
Retrieve environments batch exports logs
Path parameters
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
Example request
GET /api /environments /:environment_id /batch_exports /:id /logsExample response
Status 200 No response body
Create environments 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 /environments /:environment_id /batch_exports /:id /pauseExample response
Status 200 No response body
Create environments 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 /environments /:environment_id /batch_exports /:id /pauseExample response
Status 200 No response body
Create environments 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 /environments /:environment_id /batch_exports /:id /run_test_stepExample response
Status 200 No response body
Create environments 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 /environments /:environment_id /batch_exports /:id /run_test_stepExample response
Status 200 No response body
Create environments batch exports unpause
Unpause 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 /environments /:environment_id /batch_exports /:id /unpauseExample response
Status 200 No response body
Create environments batch exports unpause
Unpause 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 /environments /:environment_id /batch_exports /:id /unpauseExample response
Status 200 No response body
Create environments batch exports run test step new
Required API key scopes
batch_export:writeRequest 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 /environments /:environment_id /batch_exports /run_test_step_newExample response
Status 200 No response body
Create environments batch exports run test step new
Required API key scopes
batch_export:writeRequest 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 /environments /:environment_id /batch_exports /run_test_step_newExample response
Status 200 No response body
Retrieve environments batch exports test
Required API key scopes
batch_export:readExample request
GET /api /environments /:environment_id /batch_exports /testExample response
Status 200 No response body
Retrieve environments batch exports test
Required API key scopes
batch_export:readExample request
GET /api /environments /:environment_id /batch_exports /testExample response
Status 200 No response body
List all environments file download batch exports
Required API key scopes
batch_export:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:environment_id /file_download_batch_exportsExample response
Status 200
RESPONSE
Create environments file download batch exports
Create and start a batch export on demand run to download a file.
Required API key scopes
batch_export:writeResponse
Example request
Example response
Status 202
RESPONSE