跳到主要内容
版本:202201

更新商品专辑

PUT 

/openapi/2022-01/collections/:id

通过唯一 ID 与请求体内容更新已有商品专辑的详细信息。

请求

Path参数

    id string必填

    待更新的专辑 ID(UUID 格式)。

请求体

    collection object
    titlestring

    The title of the collection.

    handlestring

    The SEO link, the C-end album link is https://{subdomain}.myshoplaza.com/collections/{handle}.

    seo_titlestring

    SEO title.

    seo_keywordsstring

    SEO keywords, separated by English commas.

    seo_descriptionstring

    SEO description.

    descriptionstring

    The description of the collection, supports rich text.

    image object

    The image for the collection. This image is added to the collection's page in the Shoplazza admin.

    srcstring必填

    Image's URL

    widthint32

    Image's width in px

    heightint32

    Image's height in px

    altstring

    Image's alt

    sort_orderstring

    Collection merchandise sorting rules:

    - alpha-asc: merchandise title dictionary in ascending order
    - alpha-desc: merchandise title dictionary in reverse order
    - price-asc: merchandise price in ascending order
    - price-desc: merchandise price in reverse order
    - created-desc: merchandise creation time in ascending order
    - manual manual sorting, sorted in the order of the product_ids field.

    product_idsstring

    Product IDs inside this collection, separated by comma, for example: 0097cfc8-6ec3-40ed-ab9f-6f2231b705a6,0097cfc8-6ec3-40ed-ab9f-6f2231b705a6

    is_clear_all_product_idsboolean

    Whether to clear the collection

响应

200

数据结构
    collection object
    idstring
    示例: a60fe556-43ad-4e07-9125-507ac1bf71f7
    titlestring
    示例: Test-Collection
    descriptionstring
    示例: Desc
    handlestring
    示例: test-collection
    smartboolean
    默认值: true
    示例: false
    image object
    srcstring
    示例: //cdn.shoplazza.com/9de53f9726576696b318a8d95c0946cb.jpeg
    widthinteger
    默认值: 0
    示例: 1920
    heightinteger
    默认值: 0
    示例: 1080
    altstring
    示例:
    pathstring
    示例: 9de53f9726576696b318a8d95c0946cb.jpeg
    seo_titlestring
    示例: seo_title
    seo_descriptionstring
    示例: Desc
    seo_keywordsstring
    示例: test
    sort_orderstring
    示例: title-desc
    created_atstring
    示例: 2024-04-16T10:31:13Z
    updated_atstring
    示例: 2024-04-16T11:29:32Z