Save a list's filters by name
POST
/ admin/ v1/ stores/ {store_id}/ saved-views- Idempotency-Key supported
Save a list's filters by name, for yourself or (shared) for the whole team.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
listenumrequiredThe lists views are saved on.
- orders
- draft_orders
- shipments
- products
- inventory
- customers
namestringrequiredOne line, at most 60 characters.
filtersobjectrequiredPlain values or lists of them; at most 30, 4 KB in all.
sharedbooleanFor the whole team; defaults to the caller's own.
Returns
201 Saved.
Errors
- 409The list keeps 50 views already.
- 422
validation_failedValidation failed.