Environments-30
For instructions on how to authenticate to use this endpoint, see API overview.
Return the descendants of this saved query.
By default, we return the immediate children. The level parameter can be used to
look further ahead into the descendants tree. If level overshoots (i.e. points to only
descendants further than a leaf), we return an empty list.
Endpoints
POST | |
POST | |
POST | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE |
Create environments warehouse saved queries descendants
Path parameters
- idstring
A UUID string identifying this data warehouse saved query.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- deletedboolean
- namestring
- query
HogQL query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /descendantsExample response
Status 200
Create environments warehouse saved queries descendants
Path parameters
- idstring
A UUID string identifying this data warehouse saved query.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- deletedboolean
- namestring
- query
HogQL query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /descendantsExample response
Status 200
Create environments warehouse saved queries revert materialization
Undo materialization, revert back to the original view. (i.e. delete the materialized table and the schedule)
Path parameters
- idstring
A UUID string identifying this data warehouse saved query.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- deletedboolean
- namestring
- query
HogQL query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /revert_materializationExample response
Status 200
Create environments warehouse saved queries revert materialization
Undo materialization, revert back to the original view. (i.e. delete the materialized table and the schedule)
Path parameters
- idstring
A UUID string identifying this data warehouse saved query.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- deletedboolean
- namestring
- query
HogQL query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /revert_materializationExample response
Status 200
Create environments warehouse saved queries run
Run this saved query.
Path parameters
- idstring
A UUID string identifying this data warehouse saved query.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- deletedboolean
- namestring
- query
HogQL query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /runExample response
Status 200
Create environments warehouse saved queries run
Run this saved query.
Path parameters
- idstring
A UUID string identifying this data warehouse saved query.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- deletedboolean
- namestring
- query
HogQL query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /runExample response
Status 200
Retrieve environments warehouse saved queries run history
Return the recent run history (up to 5 most recent) for this materialized view.
Path parameters
- idstring
A UUID string identifying this data warehouse saved query.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Example request
GET /api /environments /:project_id /warehouse_saved_queries /:id /run_historyExample response
Status 200
Retrieve environments warehouse saved queries run history
Return the recent run history (up to 5 most recent) for this materialized view.
Path parameters
- idstring
A UUID string identifying this data warehouse saved query.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Example request
GET /api /environments /:project_id /warehouse_saved_queries /:id /run_historyExample response
Status 200
List all environments warehouse tables
Create, Read, Update and Delete Warehouse Tables.
Required API key scopes
warehouse_table:readPath parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
- searchstring
A search term.
Response
Example request
GET /api /environments /:project_id /warehouse_tablesExample response
Status 200
List all environments warehouse tables
Create, Read, Update and Delete Warehouse Tables.
Required API key scopes
warehouse_table:readPath parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
- searchstring
A search term.
Response
Example request
GET /api /environments /:project_id /warehouse_tablesExample response
Status 200
Create environments warehouse tables
Create, Read, Update and Delete Warehouse Tables.
Required API key scopes
warehouse_table:writePath parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- deletedboolean
- namestring
- format
- url_patternstring
- credential
Response
Example request
POST /api /environments /:project_id /warehouse_tablesExample response
Status 201
Create environments warehouse tables
Create, Read, Update and Delete Warehouse Tables.
Required API key scopes
warehouse_table:writePath parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- deletedboolean
- namestring
- format
- url_patternstring
- credential
Response
Example request
POST /api /environments /:project_id /warehouse_tablesExample response
Status 201
Retrieve environments warehouse tables
Create, Read, Update and Delete Warehouse Tables.
Required API key scopes
warehouse_table:readPath parameters
- idstring
A UUID string identifying this data warehouse table.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Example request
GET /api /environments /:project_id /warehouse_tables /:idExample response
Status 200
Retrieve environments warehouse tables
Create, Read, Update and Delete Warehouse Tables.
Required API key scopes
warehouse_table:readPath parameters
- idstring
A UUID string identifying this data warehouse table.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Example request
GET /api /environments /:project_id /warehouse_tables /:idExample response
Status 200
Update environments warehouse tables
Create, Read, Update and Delete Warehouse Tables.
Required API key scopes
warehouse_table:writePath parameters
- idstring
A UUID string identifying this data warehouse table.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- deletedboolean
- namestring
- format
- url_patternstring
- credential
Response
Example request
PATCH /api /environments /:project_id /warehouse_tables /:idExample response
Status 200
Update environments warehouse tables
Create, Read, Update and Delete Warehouse Tables.
Required API key scopes
warehouse_table:writePath parameters
- idstring
A UUID string identifying this data warehouse table.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- deletedboolean
- namestring
- format
- url_patternstring
- credential
Response
Example request
PATCH /api /environments /:project_id /warehouse_tables /:idExample response
Status 200
Delete environments warehouse tables
Create, Read, Update and Delete Warehouse Tables.
Required API key scopes
warehouse_table:writePath parameters
- idstring
A UUID string identifying this data warehouse table.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Example request
DELETE /api /environments /:project_id /warehouse_tables /:idExample response
Status 204 No response body
Delete environments warehouse tables
Create, Read, Update and Delete Warehouse Tables.
Required API key scopes
warehouse_table:writePath parameters
- idstring
A UUID string identifying this data warehouse table.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Example request
DELETE /api /environments /:project_id /warehouse_tables /:id