Environments-3
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
POST | |
POST | |
POST |
Create environments batch exports runs retry
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 /environments /:project_id /batch_exports /:batch_export_id /runs /:id /retryExample response
Status 200 No response body
Create environments batch exports runs retry
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 /environments /:project_id /batch_exports /:batch_export_id /runs /:id /retryExample response
Status 200 No response body
Retrieve environments batch exports
Required API key scopes
batch_export:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /batch_exports /:idExample response
Status 200
RESPONSE
Retrieve environments batch exports
Required API key scopes
batch_export:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /batch_exports /:idExample response
Status 200
RESPONSE
Update environments batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Response
Example request
PATCH /api /environments /:project_id /batch_exports /:idExample response
Status 200
RESPONSE
Update environments batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Response
Example request
PATCH /api /environments /:project_id /batch_exports /:idExample response
Status 200
RESPONSE
Delete environments batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /environments /:project_id /batch_exports /:idExample response
Status 204 No response body
Delete environments batch exports
Required API key scopes
batch_export:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /environments /:project_id /batch_exports /:idExample response
Status 204 No response body
Create environments 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
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /environments /:project_id /batch_exports /:id /backfillExample response
Status 200 No response body
Create environments 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
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /environments /:project_id /batch_exports /:id /backfillExample response
Status 200 No response body
Retrieve environments batch exports logs
Path parameters
- idstring
- project_idstring
Example request
GET /api /environments /:project_id /batch_exports /:id /logsExample response
Status 200 No response body
Retrieve environments batch exports logs
Path parameters
- idstring
- project_idstring
Example request
GET /api /environments /:project_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
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /environments /:project_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
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /environments /:project_id /batch_exports /:id /pauseExample response
Status 200 No response body
Create environments batch exports run test step
Required API key scopes
INTERNALPath parameters
- idstring
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /environments /:project_id /batch_exports /:id /run_test_stepExample response
Status 200 No response body
Create environments batch exports run test step
Required API key scopes
INTERNALPath parameters
- idstring
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /environments /:project_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
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /environments /:project_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
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /environments /:project_id /batch_exports /:id /unpause