Skip to content

Update collection

PATCH/admin/v1/stores/{store_id}/collections/{collection_id}
  • products:write

Partially update a collection. Send If-Match: "v{version}" to avoid overwriting someone else's changes.

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.

  • collection_idstringrequired

    The collection's ID, like col_01k8qs5s….

Headers

  • If-Matchstring · or null

    ETag from the last read, e.g. "v3"

  • shop-api-versionYYYY-MM

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

Body

  • titlestring · or null
  • handlestring · or null
  • description_htmlstring · or null
  • rulesobject · or null

    Smart collections only; replaces the whole rule set.

  • sort_orderenum · or null

    The order products appear in within a collection.

    • manual
    • title_asc
    • title_desc
    • price_asc
    • price_desc
    • created_desc
    • created_asc
  • image_media_idstring · or null

    TypeID with the med prefix.

  • seoobject · or null

    SEO fields of a PATCH: absent keeps, null clears.

  • template_suffixstring · or null

    The theme template its page uses; null goes back to the default.

  • publishedboolean · or null

Returns

200 Updated collection.

Errors

  • 404not_foundNo such collection.
  • 409Handle already used.
  • 412precondition_failedThe collection changed since it was read.
  • 422validation_failedValidation failed.