capabilities.work

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.

  1. Persist a named SQL saved query in the organization.
  2. List saved queries in the organization to resolve the new query id.
  3. Retrieve the saved query by id to confirm it was persisted.
  4. 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.