Pack exports into one ZIP
Needs a key withsprites:write
Puts ready exports in one ZIP: a folder's characters, each exported from a game of its own, as one bundle with a folder per character. Files the exports share as they are are kept once; an export whose files would clash goes in a folder of its own. Asking again for the same exports reuses the ZIP. Charges nothing.
Requires scope sprites:write.
apiKeyx-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.
application/json- body
exportIds*array<>Ready exports to put in one ZIP, each a game's characters (a folder's characters are each in a game of their own).
1 <= items <= 50name?stringWhat the download is called. Default: sprites.
1 <= length <= 80The ZIP's link.
application/json- response
bytes*integerThe ZIP's size.
downloadUrl*stringA signed link to the ZIP, valid for an hour.
files*integerFiles in the ZIP.
curl -X POST 'https://api.remagica.com/api/v1/sprites/exports/pack' \ -H 'Content-Type: application/json' \ -d '{ "exportIds": [ "4e8c2a1f6b3d5e7a9c0b1d2e3f4a5b6c" ]}'{ "bytes": 2457600, "downloadUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "files": 1}