API referenceSprites
Pick a master
POST
Needs a key withsprites:write
Makes a candidate the character's master: a new version of its Library item. Its approved takes go back to review, having been checked against the old master, and its colour skins are rendered again from it. Picking the same candidate again returns the version it made.
Requires scope sprites:write.
apiKeyheader
x-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.
characterId*stringLength
1 <= length <= 128application/json- body
candidateId*stringLength
1 <= length <= 128The master version.
application/json- response
n*integerThe version's number.
versionId*stringLength
1 <= length <= 128curl -X POST 'https://api.remagica.com/api/v1/sprites/characters/8a1d5e3f-2b4c-4d6e-9f07-1a2b3c4d5e6f/masters/pick' \ -H 'Content-Type: application/json' \ -d '{ "candidateId": "cc6fa3d4-5b3d-4f60-8e2a-1d9c6b4f7e05"}'Example Response
{ "n": 1, "versionId": "772c657e-5b3d-4f60-8e2a-1d9c6b4f7e05"}