saved_views.create.
Body
curl -X POST http://localhost:5080/api/v1/saved_views \
-H "authorization: Bearer $MS_JWT" \
-H 'content-type: application/json' \
-d '{
"name": "Recent errors",
"language": "sql",
"statement": "SELECT * FROM app WHERE level = '"'"'error'"'"'",
"time_range_secs": 3600,
"stream": "app",
"tags": ["operations"],
"pinned": true
}'
Query
Create a saved view
Save a query as a reusable view.
curl -X POST http://localhost:5080/api/v1/saved_views \
-H "authorization: Bearer $MS_JWT" \
-H 'content-type: application/json' \
-d '{
"name": "Recent errors",
"language": "sql",
"statement": "SELECT * FROM app WHERE level = '"'"'error'"'"'",
"time_range_secs": 3600,
"stream": "app",
"tags": ["operations"],
"pinned": true
}'
Last modified on October 9, 2026