remagicaDocs home
API referenceSprites

Update a character

PATCH
/sprites/characters/{characterId}

Needs a key withsprites:write

Changes a character: the fields you send replace theirs; the rest stay. A new name renames its Library item too. masterVersionId switches which of its master versions it's animated from (and renders its colour skins again from that one).

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

characterId*string
Length1 <= length <= 128

Request Body

application/json
  1. body
palette?array<>
Itemsitems <= 64
prompt?string

What the character looks like, for its master.

Lengthlength <= 4000
role?string
Lengthlength <= 60
rules?string
Lengthlength <= 2000
sizeClass?string
Value in"small""medium""large"
currentOutfitId?|

Show it in one of its outfits; null: the base outfit.

folderId?|

Move it into a folder; null: to the top level. Folders only keep things in order: its look stays as it is.

masterVersionId?string

Make another of its master versions (a version of its Library item with a master image) the one it's animated from.

Length1 <= length <= 128
name?string
Length1 <= length <= 120

Response Body

The character.

application/json
  1. response

A character of a game's cast.

convertedFromItemId*|

The Library item it was converted from, if any.

counts*

How far its animation has come.

createdAt*string
Formatdate-time
currentOutfitId*|

The outfit it's shown in; null: the base outfit.

folderId*|

The folder it's kept in; null: the top level.

gameId*string
Length1 <= length <= 128
id*string
Length1 <= length <= 128
imported*|null
libraryItemId*string

Its Library item (kind sprite, type element).

Length1 <= length <= 128
master*|

The approved master's largest image; null until one.

masterVersionId*|

The approved master (a Library version); null until one.

name*string
Length1 <= length <= 120
palette*array<>
Itemsitems <= 64
prompt*string
Lengthlength <= 4000
role*string
rules*string

Identity rules every frame keeps, one per sentence.

sizeClass*string
Value in"small""medium""large"
updatedAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.remagica.com/api/v1/sprites/characters/8a1d5e3f-2b4c-4d6e-9f07-1a2b3c4d5e6f' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "convertedFromItemId": "a7447df4-5b3d-4f60-8e2a-1d9c6b4f7e05",  "counts": {    "actions": 1,    "approved": 1,    "takes": 1  },  "createdAt": "2026-10-21T12:00:00.000Z",  "currentOutfitId": "581b2a39-5b3d-4f60-8e2a-1d9c6b4f7e05",  "folderId": "899433f8-5b3d-4f60-8e2a-1d9c6b4f7e05",  "gameId": "86c3e75d-5b3d-4f60-8e2a-1d9c6b4f7e05",  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "imported": {    "action": "string",    "cell": [      0,      0    ],    "file": "string",    "grid": {      "cellH": 1,      "cellW": 1,      "cols": 1,      "gapX": 1,      "gapY": 1,      "offsetX": 1,      "offsetY": 1,      "rows": 1    },    "height": 1280,    "importId": "1b0c94d4-5b3d-4f60-8e2a-1d9c6b4f7e05",    "palette": [      "string"    ],    "rows": [      {        "actionKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",        "actionName": "string",        "direction": "E",        "fps": 1,        "frames": 1,        "playback": "loop",        "row": 1      }    ],    "sourceKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"  },  "libraryItemId": "17c56002-5b3d-4f60-8e2a-1d9c6b4f7e05",  "master": {    "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",    "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"  },  "masterVersionId": "371019b7-5b3d-4f60-8e2a-1d9c6b4f7e05",  "name": "Autumn campaign",  "palette": [    {      "hex": "#140f17",      "role": "skin"    }  ],  "prompt": "A lighthouse on a cliff at dusk, cinematic",  "role": "Hero",  "rules": "Hood always up.",  "sizeClass": "small",  "updatedAt": "2026-10-21T12:00:00.000Z"}