Batch
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST |
Retrieve environments file download batch exports
Get a batch export on demand run.
If the underlying batch export run has completed, we return keys to the generated file downloads so that users may download them by making a request to /download.
Required API key scopes
batch_export:readPath parameters
- idstring
Example request
GET /api /environments /:environment_id /file_download_batch_exports /:idExample response
Status 200
RESPONSE
Create environments file download batch exports cancel
Cancel an ongoing file-download batch export.
Required API key scopes
batch_export:writePath parameters
- idstring
Request parameters
- file
- model
- includearray
- excludearray
- data_interval_startstring
- data_interval_endstring
Example request
POST /api /environments /:environment_id /file_download_batch_exports /:id /cancelExample response
Status 200 No response body
Retrieve environments file download batch exports download
Download a file (or a part) from this batch export run.
Users can provide a part component with an id or index, or no part component at all:
- If part id is included: The file download matching the id is downloaded.
- If part index is included: The file download matching the index (as ordered by key) is downloaded.
- If no part component is present: If there is only one file downloaded, that is downloaded. Otherwise the first one as sorted by key is downloaded.
Required API key scopes
batch_export:readPath parameters
- idstring
Example request
GET /api /environments /:environment_id /file_download_batch_exports /:id /downloadExample response
Status 200 No response body
Retrieve environments file download batch exports logs
Path parameters
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
Example request
GET /api /environments /:environment_id /file_download_batch_exports /:id /logsExample response
Status 200 No response body
List all org organizations batch exports
Required API key scopes
batch_export:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /batch_exportsExample response
Status 200
RESPONSE
List all org organizations batch exports
Required API key scopes
batch_export:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /batch_exportsExample response
Status 200
RESPONSE
Create org organizations batch exports
Required API key scopes
batch_export:writeRequest parameters
- namestring
- model
- destination
- interval
- pausedboolean
- hogql_querystring
- filters
- timezonestringnull
- offset_dayintegernull
- offset_hourintegernull
Response
Example request
POST /api /organizations /:organization_id /batch_exportsExample response
Status 201
RESPONSE
Create org organizations batch exports
Required API key scopes
batch_export:writeRequest parameters
- namestring
- model
- destination
- interval
- pausedboolean
- hogql_querystring
- filters
- timezonestringnull
- offset_dayintegernull
- offset_hourintegernull
Response
Example request
POST /api /organizations /:organization_id /batch_exportsExample response
Status 201
RESPONSE
Retrieve org organizations batch exports
Required API key scopes
batch_export:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:organization_id /batch_exports /:idExample response
Status 200
RESPONSE
Retrieve org organizations batch exports
Required API key scopes
batch_export:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:organization_id /batch_exports /:idExample response
Status 200
RESPONSE
Update org organizations 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 /organizations /:organization_id /batch_exports /:idExample response
Status 200
RESPONSE
Update org organizations 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 /organizations /:organization_id /batch_exports /:idExample response
Status 200
RESPONSE
Delete org organizations batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
Example request
DELETE /api /organizations /:organization_id /batch_exports /:idExample response
Status 204 No response body
Delete org organizations batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
Example request
DELETE /api /organizations /:organization_id /batch_exports /:idExample response
Status 204 No response body
Retrieve org organizations batch exports logs
Path parameters
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
Example request
GET /api /organizations /:organization_id /batch_exports /:id /logsExample response
Status 200 No response body
Retrieve org organizations batch exports logs
Path parameters
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
Example request
GET /api /organizations /:organization_id /batch_exports /:id /logsExample response
Status 200 No response body
Create org organizations 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 /organizations /:organization_id /batch_exports /:id /pauseExample response
Status 200 No response body
Create org organizations 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 /organizations /:organization_id /batch_exports /:id /pause