Create a folder
Needs a key withlibrary:write
Adds a folder to the Team or your Private Library, optionally inside another folder of the same scope.
Requires scope library: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
kind?stringWhat it is, as the starting folders sort it: character, sprite (a Sprite Studio character), scene, item, style, sound_effect or other.
"other""character""sprite""scene""item""style""sound_effect""other"name*string1 <= length <= 120parentId?string1 <= length <= 128scope?stringteam: every member of the workspace sees and uses it. private: only you (in this workspace). API keys act for the workspace, so they use team only.
"team""private""team"The folder.
application/json- response
A Library folder.
id*string1 <= length <= 128isDefault*booleanOne of the starting folders (can't be deleted).
itemCount*integerkind*stringWhat it is, as the starting folders sort it: character, sprite (a Sprite Studio character), scene, item, style, sound_effect or other.
"character""sprite""scene""item""style""sound_effect""other"name*stringparentId*string|nullscope*stringteam: every member of the workspace sees and uses it. private: only you (in this workspace). API keys act for the workspace, so they use team only.
"private""team"sort*integercurl -X POST 'https://api.remagica.com/api/v1/library/folders' \ -H 'Content-Type: application/json' \ -d '{ "name": "Autumn campaign"}'{ "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "isDefault": true, "itemCount": 1, "kind": "character", "name": "Autumn campaign", "parentId": "eb290249-5b3d-4f60-8e2a-1d9c6b4f7e05", "scope": "private", "sort": 1}