The updateSavedQuery() GraphQL mutation is used to update a saved query in LogScale.

For more information on saved queries, see the User Functions (Saved Searches) reference page where saved queries are discussed. Also, look at the Searching Data documentation page as it relates to recent queries and saving queries.

Syntax

Below is the syntax for the updateSavedQuery() mutation field:

graphql
updateSavedQuery(
     input: UpdateSavedQueryInput!
   ): UpdateSavedQueryPayload!

Given Datatypes

For the given datatype, UpdateSavedQueryInput, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: UpdateSavedQueryInput

ParameterTypeRequiredDefaultDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 23, 2024
customLinkInteractions[CustomLinkInteractionInput]yes The custom links for interactions. See CustomLinkInteractionInput.
dashboardLinkInteractions[DashboardLinkInteractionInput]yes The dashboard links for interactions. See DashboardLinkInteractionInput.
endstring  The ending point of the saved query.
idstringyes The unique identifier of the saved query to update.
isLiveboolean  Whether the saved query is executed continuously on live, streaming data.
namestring  The name of the saved query to update.
optionsstring  Any options related to the saved query.
queryStringstring  The new query.
searchLinkInteractions[SearchLinkInteractionInput]yes The search links for interactions. See SearchLinkInteractionInput.
startstring  The starting point of the saved query.
updateParametersInteractions[UpdateParametersInteractionInput]yes The parameters to update for interactions. See UpdateParametersInteractionInput.
viewNamestringyes The name of the view associated with the saved query.
widgetTypestring  The type of widget for displaying the results of the saved query.

Returned Datatypes

The returned datatype UpdateSavedQueryPayload has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: UpdateSavedQueryPayload

ParameterTypeRequiredDefaultDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Oct 4, 2024
savedQuerySavedQueryyes The saved query to update. See SavedQuery.