read
theme

Reads one theme settings file as parsed JSON, with the schema of every setting in it: per setting `{id, type, range?, op

Changed on

Reads one theme settings file as parsed JSON, with the schema of every setting in it: per setting {id, type, range?, options?, default?}, the same allowed values a branch set_json write is checked against. file is settings_data (the theme settings), template:<name> (templates/<name>.json, e.g. template:index) or group:<name> (a section group, e.g. group:header-group). For a template or group the schema is per section key, with its blocks; a section or block whose schema the theme does not hold says schema: not_found (or not_a_theme_file for an app block). A file that does not exist is not_found.

post/api/v1/tools/theme_settings_read

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
file, string required

settings_data, template:<name> or group:<name>.

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