remagicaDocs home
API referenceProjects

Create a folder

POST
/project-folders

Needs a key withprojects:write

Adds a project folder: a team one, a personal one (scope: personal), or one inside another folder, which takes that folder's scope.

Requires scope projects: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.

Request Body

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

Inside this folder (and in its scope); top level otherwise.

scope?string

team: the workspace's projects and team folders. personal: the projects you made and your personal folders, which only you see. API keys act for the workspace: their personal is empty.

Default"team"
Value in"team""personal"

Response Body

The folder.

application/json
  1. response
id*string
isPersonal*boolean
name*string
parentId*string|null
projectCount*integer
Example Request
curl -X POST 'https://api.remagica.com/api/v1/project-folders' \  -H 'Content-Type: application/json' \  -d '{  "name": "Autumn campaign"}'
Example Response
{  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "isPersonal": true,  "name": "Autumn campaign",  "parentId": "eb290249-5b3d-4f60-8e2a-1d9c6b4f7e05",  "projectCount": 1}