Update an action
Needs a key withsprites:write
Changes an action's name, key, prompt, timing, beats, storyboard or source: the fields you send replace theirs; the rest stay. Loop points, storyboard keys and the cancel window have to fall inside its frames.
Requires scope sprites:write.
apiKeyx-api-key<token>An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.
actionId*string1 <= length <= 128application/json- body
beats?array<>The beats of the motion, one per frame.
items <= 64cancelWindow?|nullclipSeconds?|Length of a clip take, in seconds (source clip).
fps?integer1 <= value <= 60frames?integer1 <= value <= 64loopIn?|nullloopOut?|nullplayback?string"loop""once""pingpong"prompt?stringlength <= 4000sort?integer0 <= value <= 10000source?stringsheet: one generated sheet, sliced. clip: frames taken from a video.
"sheet""clip"storyboard?The action's pinned poses, by frame.
key?stringLowercase letters and digits, joined by - or _. Left out: made from the name.
^[a-z0-9]+(?:[-_][a-z0-9]+)*$1 <= length <= 40name?string1 <= length <= 120The action.
application/json- response
An action a character performs, with its timing.
beats*array<>The beats of the motion, one per frame.
items <= 64cancelWindow*|nullclipSeconds*|Length of a clip take, in seconds (source clip).
fps*integer1 <= value <= 60frames*integer1 <= value <= 64loopIn*|nullloopOut*|nullplayback*string"loop""once""pingpong"prompt*stringlength <= 4000sort*integer0 <= value <= 10000source*stringsheet: one generated sheet, sliced. clip: frames taken from a video.
"sheet""clip"storyboard*The action's pinned poses, by frame.
characterId*string1 <= length <= 128createdAt*stringdate-timeid*string1 <= length <= 128key*stringUnique per character; what exports name it.
name*string1 <= length <= 120updatedAt*stringdate-timecurl -X PATCH 'https://api.remagica.com/api/v1/sprites/actions/f0e1d2c3-b4a5-4968-8776-5a4b3c2d1e0f' \ -H 'Content-Type: application/json' \ -d '{}'{ "beats": [ "string" ], "cancelWindow": { "from": 1, "to": 1 }, "clipSeconds": 5, "fps": 1, "frames": 1, "loopIn": 1, "loopOut": 1, "playback": "loop", "prompt": "A lighthouse on a cliff at dusk, cinematic", "sort": 1, "source": "sheet", "storyboard": { "beat": { "frame": 1, "sketchKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png" }, "end": { "frame": 1, "sketchKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png" }, "impact": { "frame": 1, "sketchKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png" }, "open": { "frame": 1, "sketchKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png" } }, "characterId": "eb1fe45b-5b3d-4f60-8e2a-1d9c6b4f7e05", "createdAt": "2026-10-21T12:00:00.000Z", "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "key": "attack", "name": "Autumn campaign", "updatedAt": "2026-10-21T12:00:00.000Z"}