Version: 202607
List theme file Versions(Single file)
GET/openapi/2026-07/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
- 200
OK
- application/json
- Schema
- Example
Schema
- Array [
- ]
codestring
error code
messagestring
error message
data object
versions object[]
List of versions
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
{
"code": "string",
"message": "string",
"data": {
"versions": [
{
"id": "string",
"version": "string",
"created_at": "string",
"theme_id": "string",
"type": "string",
"location": "string",
"updated_at": "string"
}
]
}
}