Skip to main content
Version: 202506

Update collection

PUT 

/openapi/2025-06/collections/:id

Allows users to update details of an existing collection by providing the collection ID and the desired updates in the request body.

Request

Path Parameters

    id stringrequired

    Collection ID. Must be a valid UUID

Bodyrequired

    collection objectrequired

    Collection

    titlestring

    The name of the collection

    handlestring

    A unique URL-friendly identifier for the collection

    descriptionstring

    The description of the collection

    image object

    Image

    srcstringrequired

    The source URL of the collection image

    widthint32

    The width of the collection image in pixels

    heightint32

    The height of the collection image in pixels

    altstring

    Alt text for the collection image

    seo_titlestring

    The SEO title for the collection

    seo_keywordsstring[]

    The keywords for SEO

    seo_descriptionstring

    The SEO description for the collection

    sort_orderstring

    Merchandise sorting rules. Options include: manual (default), sales-desc, price-asc, price-desc, views-desc, vendor-asc, vendor-desc, created-desc, intelligent and more

    Default value: manual
    product_idsstring[]

    List of product IDs to include in the collection. Must be valid UUIDs

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    collection object

    Collection

    idstring

    Collection ID

    titlestring

    Title

    descriptionstring

    Description

    handlestring

    URL-friendly identifier (handle)

    smartboolean

    Smart

    image object

    Image

    srcstring

    Image source URL

    widthint32

    Width dimension

    heightint32

    Height dimension

    altstring

    Alt text for image

    seo_titlestring

    SEO title

    seo_keywordsstring[]

    SEO keywords

    seo_descriptionstring

    SEO description

    sort_orderstring

    Sort order

    created_atstring

    Creation timestamp, in ISO-8601 format

    updated_atstring

    Last update timestamp, in ISO-8601 format