Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • listenumrequired

    The lists views are saved on.

    • orders
    • draft_orders
    • shipments
    • products
    • inventory
    • customers
  • namestringrequired

    One line, at most 60 characters.

  • filtersobjectrequired

    Plain values or lists of them; at most 30, 4 KB in all.

  • sharedboolean

    For the whole team; defaults to the caller's own.

Returns

201 Saved.

Errors

  • 409The list keeps 50 views already.
  • 422validation_failedValidation failed.