auto_write
creative

Changes the store's brand kit, only in the fields given; it is made if there is none. Colours are hex values for five na

Changed on

Changes the store's brand kit, only in the fields given; it is made if there is none. Colours are hex values for five named roles, fonts come from a fixed list, the logo is an image in the studio library. The voice, look and rules are instructions the designer composes by. Returns the values the changed fields held before; a colour or font that had none is not among them. Designs already made keep their own brand. Costs no credits.

post/api/v1/tools/update_brand_kit

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
      Scopescreative:write

Headers

Idempotency-Key, string

Optional; honoured when sent. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.

Request body

object required
name, string

The kit's name.

colors, object

primary (buttons and the main accent), secondary (supporting), accent (highlights), ink (text on light backgrounds), paper (backgrounds and text on dark). Only the ones to change.

fonts, object
logo_media_id, string nullable

An image in the studio library; null removes the logo.

logo_dark_media_id, string nullable

The logo for dark backgrounds, an image in the studio library; null removes it.

voiceover_voice, 'Rachel' | 'Aria' | 'Sarah' | 'Laura' | 'Charlotte' | 'Alice' | 'Matilda' | 'Jessica' | 'Lily' | 'Roger' | 'George' | 'Callum' | 'Liam' | 'Will' | 'Eric' | 'Chris' | 'Brian' | 'Daniel' | 'Bill' | 'Charlie' | 'River' | 'null' nullable

The voice a voice-over is spoken in unless a request names its own; null clears it.

voiceover_language, 'en' | 'nl' | 'de' | 'fr' | 'es' | 'it' | 'pt' | 'pl' | 'sv' | 'da' | 'fi' | 'cs' | 'sk' | 'ro' | 'bg' | 'hr' | 'el' | 'tr' | 'uk' | 'ru' | 'ar' | 'hi' | 'ta' | 'id' | 'ms' | 'ja' | 'ko' | 'zh' | 'null' nullable

The language of the voice-over, as a two-letter code; null clears it.

voice, string nullable

How the brand speaks, in a sentence or two.

aesthetic, string nullable

The look in a sentence ("warm, minimal, lots of white").

music_mood, string nullable

The mood of the instrumental track a new video is made with, unless the request names its own.

do_list, string[]

Rules the designer always follows. Replaces the whole list.

dont_list, string[]

Things the designer never does. Replaces the whole list.

requires_logo, boolean

Tell the designer to put the logo on every design.

disclaimer, string nullable

Small print the designer is told to include.

from_reading, string

The request_id of a finished website reading these values were taken from (its proposal), so the kit keeps where on the page each was found.

idempotency_key, string

Optional. A unique string you choose for this request. Send the SAME key when retrying after a timeout and Magistry returns the original outcome instead of performing the write twice. Reusing a key with different arguments is refused rather than replayed.

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