remagicaDocs home
API referenceSprites

Update a folder

PATCH
/sprites/folders/{folderId}

Needs a key withsprites:write

Renames a folder or moves it (parentId, null for the top level). A folder can't go inside itself or one of its subfolders.

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

folderId*string
Length1 <= length <= 128

Request Body

application/json
  1. body
name?string
Length1 <= length <= 120
parentId?|

Move it into another folder; null: to the top level. Never into itself or one of its own subfolders.

Response Body

The folder.

application/json
  1. response

A folder of the studio's characters.

characters*integer

Characters kept directly in it (not in its subfolders).

createdAt*string
Formatdate-time
id*string
Length1 <= length <= 128
name*string
Length1 <= length <= 120
parentId*|

The folder it sits in; null: the top level.

updatedAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.remagica.com/api/v1/sprites/folders/5d4c3b2a-1f0e-4d9c-8b7a-6f5e4d3c2b1a' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "characters": 1,  "createdAt": "2026-10-21T12:00:00.000Z",  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "name": "Autumn campaign",  "parentId": "eb290249-5b3d-4f60-8e2a-1d9c6b4f7e05",  "updatedAt": "2026-10-21T12:00:00.000Z"}