Skip to main content
Version: 202601

Rename theme file

PUT 

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

Renames an existing file within the specified theme.

Request​

Path Parameters

    theme_id stringrequired

    Theme's unique identifier

Bodyrequired

    doc objectrequired

    The file to rename, containing its type and the current and new location

    typestringrequired

    The type of file: layout, templates, sections, snippets, assets, config, locales

    locationstring

    Location

    new_locationstring

    New location

Responses​

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    object