remagicaDocs home
API referenceProjects

Rename a folder

PATCH
/project-folders/{folderId}

Needs a key withprojects:write

Renames a folder.

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.

Path Parameters

folderId*string
Length1 <= length <= 128

Request Body

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

Response Body

The folder.

application/json
  1. response
id*string
name*string
Example Request
curl -X PATCH 'https://api.remagica.com/api/v1/project-folders/899433f8-5b3d-4f60-8e2a-1d9c6b4f7e05' \  -H 'Content-Type: application/json' \  -d '{  "name": "Autumn campaign"}'
Example Response
{  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "name": "Autumn campaign"}