Skip to main content
Version: 202701

Get edit session file

GET 

/openapi/2027-01/themes/edit-sessions/:oseid/files/:doc_id

Read a single file within a theme edit session.

Request​

Path Parameters

    oseid stringrequired

    Edit session ID

    doc_id stringrequired

    Document ID of the file within the session

Responses​

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    template object

    The edit session file

    idstring

    Document ID

    theme_idstring

    Theme ID

    typestring

    File type: layout, templates, sections, snippets, assets, config, locales

    locationstring

    File location, e.g. index.liquid

    contentstring

    Raw file content as a JSON string (parse on the client)

    oseidstring

    Edit session ID