Create a dataset from a read-only SELECT
POST/v1/analytics/datasets
Save a read-only SELECT as a reusable dataset.
Send a name and the sql, plus an optional description and is_shared.
The column manifest — each output column and its type — is extracted
automatically with a LIMIT 0 probe, which is what lets charts offer the right
dimensions and metrics later. SQL safety and org scoping are enforced, so only
read-only statements against your own data are accepted.
Requires the analytics:write scope.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 429
Successful Response
Error
Error
Error
Error
Validation Error
Error