auto_write
creative

Creates a production, or replaces the spec of one that is not rendering (pass production_id; base_spec_hash refuses the

Changed on

Creates a production, or replaces the spec of one that is not rendering (pass production_id; base_spec_hash refuses the save when the production changed since it was read). A production is one film: scenes of up to an hour each with transitions between them, one soundtrack (narration, ducked music, effects, tones and the sound each scene keeps), chapters and subtitles; never short clips joined end to end. Inline scenes are checked by the scene compiler now; every problem comes back at once. Free; nothing is rendered or published.

post/api/v1/tools/production_save

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

Required, here or as idempotency_key in the body. 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
production_id, string

Leave out to create a production.

title, string
spec, object required

A creative-production/1 spec. scenes (1 to 400, in order): each {id, design: {design_id, version}} for a saved design, or {id, doc} for a creative-scene/2 document inline (up to 3600 s each); transition {type, duration 0.1-5 s} brings a scene in over the one before; sound keep|drop says whether a scene's own sound is mixed in (default: keep when it has any). tracks.narration [{media, start or scene+offset, source tts|human, words [{w, start_ms, end_ms}]}], tracks.music [{media, start, end, loop, gain_db, fade_in, fade_out, duck_under_narration_db}], tracks.sfx [{media or tone {hz, gain_db} with duration, start or scene+offset}]. media is a library media id or media://<bucket>/<store id>/<path>. chapters [{title, scene or start}]; captions {languages}; master {loudness_lufs (default -14), poster_at}. brand.mark lays the brand logo over every scene (default: the brand kit's logo, bottom right, 40 px high on a light plate): false for none, or {logo (an image media id or media://<bucket>/<store id>/<path>), corner, height 16-160, plate light|dark|none, opacity 0.2-1}; a scene with mark: false is left without it. cut {seconds (1-600; spots are 30, 15, 6), scenes [ids, in the order to try]} makes a cutdown of the same production: the last scene (end card) stays whole, earlier scenes are taken while they fit and the last one taken is trimmed to fill the length; tracks move with their scenes, chapters go. Save one production per length and placement for a 16:9, 1:1 and 9:16 set.

review_required, boolean

When true, it renders only after an approved script review of this version.

base_spec_hash, string

The spec_hash read with the production; the save is refused if it moved.

from_storyboard, object

Build the scenes from a done production_storyboard: request_id is the storyboard's request, scenes maps every storyboard scene id to the request_id of its done production_author_scene. The scenes come in the storyboard's order with its transitions, chapters, language and title; spec then holds the rest (version, placement, tracks) and no scenes.

idempotency_key, string required

Required. 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