Saved Query Lifecycle
A 4-step recipe with Viam. We can help you get access.
Recipe · 4 steps
Saved Query Lifecycle
with Viam
Create a saved query, resolve its id, get it, then update it.
- Persist a named SQL saved query in the organization.
- List saved queries in the organization to resolve the new query id.
- Retrieve the saved query by id to confirm it was persisted.
- Update the saved query's name and SQL statement.
What you'll need to have ready
- apiKey: Viam API key value sent in the key header.
- organizationId: The organization the saved query belongs to.
- queryName: Name for the new saved query.
- sqlQuery: The SQL statement to persist.
- updatedName: The new name to apply on update.
- updatedSqlQuery: The new SQL statement to apply on update.
For your developer
Arazzo workflow viam:saved-query-lifecycle, 4 operations: createSavedQuery → listSavedQueries → getSavedQuery → updateSavedQuery. Specs on APIs.io.