remagicaDocs home
API referenceSprites

Update an outfit

PATCH
/sprites/outfits/{outfitId}

Needs a key withsprites:write

Changes an outfit's name, prompt or palette overrides; the rest stay. A colour skin's new overrides render it again. The base outfit only takes a new name.

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

outfitId*string
Length1 <= length <= 128

Request Body

application/json
  1. body
name?string
Length1 <= length <= 120
paletteOverrides?array<>
Itemsitems <= 64
prompt?string
Lengthlength <= 4000

Response Body

The outfit.

application/json
  1. response

An outfit: an edit of the master that keeps the pose (drawn from its prompt), or a colour skin (palette overrides, no prompt). The base outfit is the master itself.

characterId*string
Length1 <= length <= 128
createdAt*string
Formatdate-time
fit*|

How it sits against the base master (the fit check); null until it's made.

id*string
Length1 <= length <= 128
isBase*boolean
master*|

The outfit's master; null until it's made.

name*string
Length1 <= length <= 120
paletteOverrides*array<>

A colour skin's colours: each role is a colour of the master (#rrggbb), its hex the colour the skin paints instead.

Itemsitems <= 64
prompt*string
Lengthlength <= 4000
status*string
Value in"queued""generating""ready""failed"
updatedAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.remagica.com/api/v1/sprites/outfits/f54469b9-5b3d-4f60-8e2a-1d9c6b4f7e05' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "characterId": "eb1fe45b-5b3d-4f60-8e2a-1d9c6b4f7e05",  "createdAt": "2026-10-21T12:00:00.000Z",  "fit": {    "baselineDelta": 1,    "boxDelta": 1,    "height": 1280,    "heightDelta": 1,    "ok": true,    "width": 1024,    "widthDelta": 1  },  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "isBase": true,  "master": {    "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",    "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"  },  "name": "Autumn campaign",  "paletteOverrides": [    {      "hex": "#140f17",      "role": "skin"    }  ],  "prompt": "A lighthouse on a cliff at dusk, cinematic",  "status": "queued",  "updatedAt": "2026-10-21T12:00:00.000Z"}