Version: 202601
Update theme file
PATCH/openapi/2026-01/themes/:theme_id/doc
Update the content of a specific theme file in the selected theme.
Request
Path Parameters
theme_id stringrequired
Theme's unique identifier
- application/json
- Body
- Example
Bodyrequired
doc objectrequired
Contains details about the type, location, and content to update
typestringrequired
The type of file: layout, templates, sections, snippets,assets, config, locales etc
locationstringrequired
Location
contentstringrequired
Content
{
"doc": {
"type": "string",
"location": "string",
"content": "string"
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
object
{
"code": "string",
"message": "string",
"data": {}
}