remagicaDocs home
API referenceSprites

Set a storyboard sketch

PUT
/sprites/actions/{actionId}/sketches/{slot}

Needs a key withsprites:write

Pins a sketch of the pose to a storyboard slot (at the slot's frame, its default when it isn't pinned yet). Sheet takes send it to the model as a pose reference for that frame; clip takes don't use sketches. Upload the image first (POST /uploads). Sending another replaces it.

Requires scope sprites:write.

Authorization

apiKey
headerx-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.

Path Parameters

actionId*string
Length1 <= length <= 128
slot*string

The storyboard slot: open, beat, impact or end.

Value in"open""beat""impact""end"

Request Body

application/json
  1. body
image*

A rough sketch of the pose, as a PNG or JPEG.

Response Body

The action with the sketch.

application/json
  1. response

The action with the slot's sketch.

action*

An action a character performs, with its timing.

sketch*|

The slot's sketch; null once cleared.

Example Request
curl -X PUT 'https://api.remagica.com/api/v1/sprites/actions/f0e1d2c3-b4a5-4968-8776-5a4b3c2d1e0f/sketches/open' \  -H 'Content-Type: application/json' \  -d '{  "image": {    "key": "uploads/org_123/5d1c…/frame.png"  }}'
Example Response
{  "action": {    "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"  },  "sketch": {    "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",    "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"  }}