跳到主要内容
版本:202601

查询单个主题文件的版本列表

GET 

/openapi/2026-01/themes/:theme_id/doc/versions

返回单个主题文件的版本历史列表。

请求​

Path参数

    theme_id string必填

    主题 ID

Query参数

    type string

    要查询版本的文件类型:layout、templates、sections、snippets、assets、config、locales(此接口不支持 blocks)。默认 layout

    location string

    文件在主题中的位置。默认为 theme.liquid

响应​

OK

数据结构
    codestring

    错误码

    messagestring

    错误信息

    data object
    versions object[]

    版本列表

  • Array [
  • idstring

    主题文件版本 ID

    versionstring

    版本

    created_atstring

    创建时间,ISO-8601 格式

    theme_idstring

    主题 ID

    typestring

    类型

    locationstring

    位置信息

    updated_atstring

    最后更新时间,ISO-8601 格式(例如 2023-01-01T00:00:00Z)

  • ]