read
theme

Reads one theme file on a branch (a working branch falls through to live for a file it did not change): text in `content

Changed on

Reads one theme file on a branch (a working branch falls through to live for a file it did not change): text in content, a binary asset base64 in content_base64, with its content_sha — the sha a later write must name as its base. A file over one megabyte is described without its body (omitted: too_large). A path that does not exist, or that the branch deleted, is not_found.

post/api/v1/tools/theme_read_file

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopestheme:read

Request body

object required
path, string required

Theme path, e.g. sections/header.liquid.

branch, string

live (the imported theme, default) or a working branch chat/<uuid> / api/<uuid>.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision