Skip to main content
Version: 202506

List theme file Versions(Single file)

GET 

/openapi/2025-06/themes/:theme_id/doc/versions

Returns the version history for a single theme file.

Request

Path Parameters

    theme_id stringrequired

    Theme's unique identifier

Query Parameters

    type string

    The type of file to get version (assets, layout, template, etc.). Defaults to layout

    location string

    The location of the file within the theme. Defaults to theme.liquid

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    versions object[]

    List of versions

  • Array [
  • idstring

    Theme file version ID

    versionstring

    Version

    created_atstring

    Creation timestamp, in ISO-8601 format

    theme_idstring

    Theme ID

    typestring

    Type

    locationstring

    Location

    updated_atstring

    Last update timestamp, in ISO-8601 format

  • ]