Edit a video
postkey_edit_videoPostkey: Changes a video edit, all or nothing (latest version); the person sees it live, can undo. ops: a list of objects with "op": cut, restore, cut_words, restore_words, split, trim, fix_word, set_emoji, set_highlight, set_censor, retime, use_take, move (sentences); set_hook, set_captions, add_text, set_text, remove_text; add_moment (or add_title), add_effect, add_sound, add_broll, add_image, add_song, each with set_ and remove_; set_music, split_song; set_tightness, set_clip, set_pan, set_scene, set_layout, set_shape, set_reply, set_punch, set_clean_voice, set_fillers, set_speed, set_transition, set_cut, set_card, set_cta, apply_template, set_title, set_words, set_translation, set_captions_in. Each is {"op":...}; all fields: postkey_guide topic editor. Read ids with postkey_get_edit. note (what you did and why) is shown to the person beside the change. Returns the change, length, script. It cannot post: render it (postkey_guide topic render) or the person exports from open_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | The operations, in order, each an object with "op" (see the description). At least one. | |
| note | No | What you did and why, in one short sentence. Shown to the person beside the change. | |
| edit_id | Yes | The edit id from postkey_list_edits. | |
| base_version | No | Optional: the version you read with postkey_get_edit. It still lands on the latest version; the answer says if it had moved on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: refused (isError; code, message, guide_topic, url); no change. | |
| edit | No | The updated edit as a script (as postkey_get_edit). | |
| change | No | The change made: change_id (undo it with postkey_undo_edit), version, who, by, summary, undone, at. null when nothing changed. | |
| export | No | Exporting runs on the person's device. | |
| changed | No | false: the edit already was that way; nothing was recorded. | |
| seconds | No | The finished length in seconds. | |
| summary | No | One sentence of what changed. | |
| version | No | The edit's version after the change. | |
| open_url | No | Where the person sees it. | |
| base_moved | No | true: the edit had changed since base_version; your change landed on the latest one. |