Skip to main content
Version: 202607

Create theme file

POST 

/openapi/2026-07/themes/:theme_id/doc

Creates a new file within the specified theme.

Request

Path Parameters

    theme_id stringrequired

    Theme's unique identifier

Bodyrequired

    doc objectrequired

    Document

    typestringrequired

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

    locationstringrequired

    Location

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    object