savedSearchUpdate mutation
Update a saved search.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
mutation savedSearchUpdate($input: SavedSearchUpdateInput!) { savedSearchUpdate(input: $input) {} } { “input”: {
<font style="color:#1F61A0;">savedSearch</font> <font style="color:#555555;">{</font><font style="color:#1F61A0;">id</font><font style="color:#555555;">}</font><font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font><font style="color:#1F61A0;">field</font><font style="color:#1F61A0;">message</font><font style="color:#555555;">}</font>
} }
<font style="color:#8B2BB9;">"id"</font><font style="color:#555555;">:</font> <font style="color:#D64292;">"Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE="</font>
Arguments
| Argument | Description |
|---|---|
input( [SavedSearchUpdateInput!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/savedsearchupdateinput)) REQUIRED |
Input fields to update a saved search. |
SavedSearchUpdateInput fields
- id (
[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)) REQUIRED
ID of the saved search to update. - name (
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
A descriptive name of the saved search. - query (
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
The query string of a saved search. This included search terms and filters.
Return fields
- savedSearch (
[SavedSearch](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/savedsearch))
The saved search that was updated. - userErrors (
[[UserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/usererror))
List of errors that occurred executing the mutation.
