remagicaDocs home
API referenceSprites

Update a game

PATCH
/sprites/games/{gameId}

Needs a key withsprites:write

Changes a game's style bible: the fields you send replace theirs (canvas, rules, sizeClasses and cleanup field by field); the rest stay. A new style without a recipe takes that style's recipe.

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

gameId*string
Length1 <= length <= 128

Request Body

application/json
  1. body
camera?string

Which directions each action is drawn in: side (side-scroller), four or eight (top-down) or iso (isometric).

Value in"side""four""eight""iso"
canvas?

The fields you send replace theirs; the rest stay.

cleanup?
imageModel?|null
name?string
Length1 <= length <= 120
recipe?array<>

Replaces the recipe. Left out while style changes: the new style's traits.

Itemsitems <= 24
rules?
seed?|

A fixed seed for every take; null: a new one each time.

sizeClasses?
style?string

A base style (pixel, painted, cel, 3d, vector) or a look id.

videoModel?|null

Response Body

The game.

application/json
  1. response

A game: its style bible and defaults.

camera*string

Which directions each action is drawn in: side (side-scroller), four or eight (top-down) or iso (isometric).

Value in"side""four""eight""iso"
canvas*

How the game's sprites are drawn. Pixel styles use sizePx, the rest resolutionPx.

cleanup*

The cleanup steps a take goes through.

createdAt*string
Formatdate-time
id*string
Length1 <= length <= 128
imageModel*|

The image model takes use; null: the app's default.

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

The style's traits, in order: what prompts say about the look. Never names a game or studio.

Itemsitems <= 24
rules*

The checks every frame of the game is held to.

seed*|

A fixed seed for every take; null: a new one each time.

sizeClasses*

How tall each size class stands, in px on a 32 px canvas.

slug*string

Unique in the workspace; made from the name.

style*string

A base style (pixel, painted, cel, 3d, vector) or a look id.

updatedAt*string
Formatdate-time
videoModel*|

The video model clip takes use; null: the app's default.

Example Request
curl -X PATCH 'https://api.remagica.com/api/v1/sprites/games/3c6f2a51-9d0e-4b7a-8f12-6e4d0c9b7a21' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "camera": "side",  "canvas": {    "light": "tl",    "line": "none",    "outline": "none",    "resolutionPx": 256,    "shading": "flat",    "sizePx": 16  },  "cleanup": {    "align": true,    "bg": true,    "color": true,    "quant": true,    "snap": true,    "upscale": true  },  "createdAt": "2026-10-21T12:00:00.000Z",  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "imageModel": "string",  "name": "Autumn campaign",  "recipe": [    "string"  ],  "rules": {    "maxColours": 1,    "oneOutline": true,    "outlineHex": "#140f17"  },  "seed": 1,  "sizeClasses": {    "large": 1,    "medium": 1,    "small": 1  },  "slug": "moonfall",  "style": "pixel",  "updatedAt": "2026-10-21T12:00:00.000Z",  "videoModel": "string"}