API referenceSprites
Revert a frame
POST
Needs a key withsprites:write
Puts the generated frame back after touch-ups or redraws. The take is scored again; an approved take goes back to review.
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.
frameId*stringLength
1 <= length <= 128The frame, scored again.
application/json- response
The frame after the edit, scored again.
frame*A frame of a take.
take*The frame's take, after the edit.
curl -X POST 'https://api.remagica.com/api/v1/sprites/frames/f68c2bb4-5b3d-4f60-8e2a-1d9c6b4f7e05/revert'Example Response
{ "frame": { "clipIndex": 1, "editedFromKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "gameplay": { "events": [ "string" ], "hit": { "h": 1, "w": 1, "x": 1, "y": 1, "damage": 1, "knockback": { "x": 1, "y": 1 }, "on": true }, "hurt": { "h": 1, "w": 1, "x": 1, "y": 1 }, "root": 1 }, "holdMs": 1, "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "index": 1, "isTween": true, "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "locked": true, "offsetX": 1, "offsetY": 1, "score": 1, "scoreModel": "string", "takeId": "2a6faac1-5b3d-4f60-8e2a-1d9c6b4f7e05", "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png" }, "take": { "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "status": "queued" }}