Data
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
POST | |
POST | |
POST | |
POST | |
GET | |
POST | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
PATCH | |
POST | |
POST | |
GET |
Create warehouse saved queries cancel
Cancel a running saved query workflow.
Path parameters
- idstring
- project_idstring
Request parameters
- deletedboolean
- namestring
- query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /cancelExample response
Status 200
Retrieve warehouse saved queries dependencies
Return the count of immediate upstream and downstream dependencies for this saved query.
Path parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /warehouse_saved_queries /:id /dependenciesExample response
Status 200
Create 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
- idstring
- project_idstring
Request parameters
- deletedboolean
- namestring
- query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /descendantsExample response
Status 200
Create warehouse saved queries materialize
Enable materialization for this saved query with a 24-hour sync frequency.
Path parameters
- idstring
- project_idstring
Request parameters
- deletedboolean
- namestring
- query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /materializeExample response
Status 200
Create 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
- project_idstring
Request parameters
- deletedboolean
- namestring
- query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /revert_materializationExample response
Status 200
Create warehouse saved queries run
Run this saved query.
Path parameters
- idstring
- project_idstring
Request parameters
- deletedboolean
- namestring
- query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /:id /runExample response
Status 200
Retrieve warehouse saved queries run history
Return the recent run history (up to 5 most recent) for this materialized view.
Path parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /warehouse_saved_queries /:id /run_historyExample response
Status 200
Create warehouse saved queries resume schedules
Resume paused materialization schedules for multiple matviews.
Accepts a list of view IDs in the request body: {"view_ids": ["id1", "id2", ...]} This endpoint is idempotent - calling it on already running or non-existent schedules is safe.
Path parameters
- project_idstring
Request parameters
- deletedboolean
- namestring
- query
- edited_history_idstring
- soft_updateboolean
Response
Example request
POST /api /environments /:project_id /warehouse_saved_queries /resume_schedulesExample response
Status 200
List all external data sources list
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /projects /:project_id /external_data_sourcesExample response
Status 200
Create external data sources create
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- project_idstring
Request parameters
- client_secretstring
- account_idstring
- descriptionstring
- job_inputs
Response
Example request
POST /api /projects /:project_id /external_data_sourcesExample response
Status 201
Retrieve external data sources retrieve
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /external_data_sources /:idExample response
Status 200
Update external data sources update
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- idstring
- project_idstring
Request parameters
- client_secretstring
- account_idstring
- descriptionstring
- job_inputs
Response
Example request
PATCH /api /projects /:project_id /external_data_sources /:idExample response
Status 200
Delete external data sources destroy
Create, Read, Update and Delete External data Sources.
Required API key scopes
external_data_source:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /projects /:project_id /external_data_sources /:idExample response
Status 204 No response body
Retrieve external data sources jobs retrieve
Create, Read, Update and Delete External data Sources.
Path parameters
- idstring
- project_idstring
Example request
GET /api /projects /:project_id /external_data_sources /:id /jobsExample response
Status 200 No response body
Create external data sources reload create
Create, Read, Update and Delete External data Sources.
Path parameters
- idstring
- project_idstring
Request parameters
- client_secretstring
- account_idstring
- descriptionstring
- job_inputs
Example request
POST /api /projects /:project_id /external_data_sources /:id /reloadExample response
Status 200 No response body
Update external data sources revenue analytics config update
Update the revenue analytics configuration and return the full external data source.
Path parameters
- idstring
- project_idstring
Request parameters
- client_secretstring
- account_idstring
- descriptionstring
- job_inputs
Example request
PATCH /api /projects /:project_id /external_data_sources /:id /revenue_analytics_configExample response
Status 200 No response body
Create external data sources database schema create
Create, Read, Update and Delete External data Sources.
Path parameters
- project_idstring
Request parameters
- client_secretstring
- account_idstring
- descriptionstring
- job_inputs
Example request
POST /api /projects /:project_id /external_data_sources /database_schemaExample response
Status 200 No response body
Create external data sources source prefix create
Create, Read, Update and Delete External data Sources.
Path parameters
- project_idstring
Request parameters
- client_secretstring
- account_idstring
- descriptionstring
- job_inputs
Example request
POST /api /projects /:project_id /external_data_sources /source_prefixExample response
Status 200 No response body
Retrieve external data sources wizard retrieve
Create, Read, Update and Delete External data Sources.
Path parameters
- project_idstring
Example request
GET /api /projects /:project_id /external_data_sources /wizard