Scrub API
POST/v1/tools/save_brand_kitfree

Save a Brand Kit

Saves a Brand Kit, free: its name and its parts (brand {back, text, accent, font}, captions, safe, voice, music {prompt}, and logo {src: a file_id, the logo as it is, for light pictures; on_dark?: a file_id, its white or reversed version for dark or busy pictures, shown where it reads better; box?; plate?: card, scrim or none, what goes behind it where neither reads (card when left out)}, a timeline's own; writing {tone, audience}: how the brand sounds and who it writes for, in words, for Write content's own settings of those names; styles {title, callout}: the look of words on screen marked with that role in a timeline (a hook or heading, a figure or phrase shown big), each {font, weight, size, colour, back, in, out} as a text box has them; taste: at most 40 rules for how the brand's videos are made, each {about: one of opening, shots, movement, words on screen, music, ending; rule: in words, at most 200 characters; measure?: one of first_words_s, shot_s, cuts_per_minute, moving_shots_share, words_on_screen_share, caption_words, music_under_voice_db, tail_s; low?, usual?, high?: what was measured across the videos studied; unit?: one of s, dB, %, words, per minute; held?, of?: how many of the videos studied hold it; seen?: where it shows, in words; sets?: {setting, value}: the setting that follows it, one of seconds: Length on Draft a video script (write_script.seconds); top: On top on Plan the cutaways (plan_cutaways.top); cutaway: Longest cutaway on Plan the cutaways (plan_cutaways.cutaway); speaker: Longest on the speaker on Plan the cutaways (plan_cutaways.speaker); quiet: Longest quiet on Plan the cutaways (plan_cutaways.quiet); callouts: Most callouts on Plan the cutaways (plan_cutaways.callouts); transition: the video's transition between pictures, one of cut, blur, fade, push, zoom; motion: how each full-frame picture moves, an image's motion; music: the music's level under the voice, 0 to 1 (music.volume)}. A rule with no sets is followed by whoever makes the video, reading it.), each checked as a timeline or the action it fills checks it; one that is not right is not saved, and says why. A new kit is given its id (kit_…); saving one by its id saves over it, so give every part it keeps. A workspace keeps at most 50.

Fields

FieldTypeDefaultWhat it is
kitstringNoneIts id, kit_…, to save over it
namestringRequiredWhat it is called
partsobjectRequiredIts parts, as a timeline has them

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/save_brand_kit \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","parts":{}}'

Answer

{
  "ok": true,
  "result": {
    "…": "…"
  }
}

What result holds is said above.

Every call can also answer an error: what comes back. Try it with your key from Account.