Version: 202607
Rename theme file
PUT/openapi/2026-07/themes/:theme_id/doc-rename
Renames an existing file within the specified theme.
Request
Path Parameters
theme_id stringrequired
Theme's unique identifier
- application/json
- Body
- Example
Bodyrequired
doc objectrequired
Document
typestringrequired
The type of file: layout, templates, sections, snippets,assets, config, locales etc
locationstring
Location
new_locationstring
New location
{
"doc": {
"type": "string",
"location": "string",
"new_location": "string"
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
object
{
"code": "string",
"message": "string",
"data": {}
}