Documentation Index
Fetch the complete documentation index at: https://mintlify.com/spiceai/spiceai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Datasets API provides endpoints to list configured datasets, trigger on-demand refreshes for accelerated datasets, and update refresh SQL at runtime.List Datasets
Query Parameters
Include the current status of each dataset. Possible values:
initializing- Dataset is being initializedready- Dataset is ready for queriesdisabled- Dataset is disablederror- Dataset encountered an errorrefreshing- Dataset is currently refreshingshuttingdown- Dataset is shutting down
Response format:
json or csvFilter datasets by source (e.g.,
postgres:aidemo_messages)Response
Array of dataset information objects.
The data source for the dataset (e.g.,
postgres:syncs, databricks:hive_metastore.default.messages)The name of the dataset as configured in the spicepod
Whether replication is enabled for this dataset
Whether acceleration is enabled for this dataset
Current status of the dataset (only when
status=true query parameter is set)Human-readable error message (only when
status=true and status is Error)Additional dataset properties (e.g., search support)
Response Example (JSON)
Response Example (CSV)
Examples
Refresh Dataset
full and append refresh modes (not changes mode).
Path Parameters
The name of the dataset to refresh
Request Body
SQL statement to use for the refresh. If not provided, uses the current
refresh_sql configured in the spicepod or from a previous update.Refresh mode override:
full or appendMaximum jitter to add before starting refresh (e.g.,
10s, 1m)Request Example
Response
Result message indicating success or failure
Status Codes
- 201 Created - Dataset refresh triggered successfully
- 400 Bad Request - Acceleration not enabled for the dataset
- 404 Not Found - Dataset not found
- 500 Internal Server Error - Unexpected error during refresh
Response Examples
Success (201)
Dataset Not Found (404)
Acceleration Not Enabled (400)
Examples
Update Refresh SQL
refresh_sql parameter for a dataset’s acceleration at runtime. This change is temporary and will revert to the spicepod.yml definition on the next runtime restart.
Path Parameters
The name of the dataset to update
Request Body
The updated SQL statement for the dataset’s refresh
Request Example
Status Codes
- 200 OK - Refresh SQL updated successfully
- 404 Not Found - Dataset not found
- 500 Internal Server Error - Error updating refresh SQL