Environments-29
For instructions on how to authenticate to use this endpoint, see API overview.
Create, Read, Update and Delete Warehouse Tables.
Endpoints
| DELETE | |
| GET | |
| POST | |
| POST | |
| POST | |
| POST | |
| POST | |
| GET | |
| POST | |
| GET | 
Delete environments warehouse saved queries
Required API key scopes
warehouse_view:writePath parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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 Example response
Status 204 No response body
Delete environments warehouse saved queries
Required API key scopes
warehouse_view:writePath parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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 Example response
Status 204 No response body
Retrieve environments warehouse saved queries activity
Required API key scopes
activity_log:readPath parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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 Example response
Status 200
Retrieve environments warehouse saved queries activity
Required API key scopes
activity_log:readPath parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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 Example response
Status 200
Create environments warehouse saved queries ancestors
Return the ancestors of this saved query.
By default, we return the immediate parents. The level parameter can be used to
look further back into the ancestor tree. If level overshoots (i.e. points to only
ancestors beyond the root), we return an empty list.
Path parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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
- queryHogQL query 
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST Example response
Status 200
Create environments warehouse saved queries ancestors
Return the ancestors of this saved query.
By default, we return the immediate parents. The level parameter can be used to
look further back into the ancestor tree. If level overshoots (i.e. points to only
ancestors beyond the root), we return an empty list.
Path parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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
- queryHogQL query 
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST Example response
Status 200
Create environments warehouse saved queries cancel
Cancel a running saved query workflow.
Path parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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
- queryHogQL query 
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST Example response
Status 200
Create environments warehouse saved queries cancel
Cancel a running saved query workflow.
Path parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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
- queryHogQL query 
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST Example response
Status 200
Create environments warehouse saved queries descendants
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.
Path parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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
- queryHogQL query 
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST Example response
Status 200
Create environments warehouse saved queries descendants
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.
Path parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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
- queryHogQL query 
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST Example 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
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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
- queryHogQL query 
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST Example 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
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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
- queryHogQL query 
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST Example response
Status 200
Create environments warehouse saved queries run
Run this saved query.
Path parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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
- queryHogQL query 
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST Example response
Status 200
Create environments warehouse saved queries run
Run this saved query.
Path parameters
- idstringA UUID string identifying this data warehouse saved query. 
- project_idstringProject 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
- queryHogQL query 
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST Example response
Status 200
List all environments warehouse tables
Required API key scopes
warehouse_table:readPath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- limitintegerNumber of results to return per page. 
- offsetintegerThe initial index from which to return the results. 
- searchstringA search term. 
Response
Example request
GET Example response
Status 200
List all environments warehouse tables
Required API key scopes
warehouse_table:readPath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- limitintegerNumber of results to return per page. 
- offsetintegerThe initial index from which to return the results. 
- searchstringA search term. 
Response
Example request
GET Example response
Status 200
Create environments warehouse tables
Required API key scopes
warehouse_table:writePath parameters
- project_idstringProject 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 Example response
Status 201
Create environments warehouse tables
Required API key scopes
warehouse_table:writePath parameters
- project_idstringProject 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 Example response
Status 201
Retrieve environments warehouse tables
Required API key scopes
warehouse_table:readPath parameters
- idstringA UUID string identifying this data warehouse table. 
- project_idstringProject 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 Example response
Status 200
Retrieve environments warehouse tables
Required API key scopes
warehouse_table:readPath parameters
- idstringA UUID string identifying this data warehouse table. 
- project_idstringProject 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