Skip to main content
PATCH
/
v1
/
folders
/
{id}
Update a folder
curl --request PATCH \
  --url http://localhost:3000/v1/folders/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "parentId": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "parentId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API Key (sk...)

Path Parameters

id
string
required

Folder ID

Body

application/json
name
string

New name for the folder

parentId
string | null

New parent folder ID

Response

Folder updated successfully

id
string

Unique identifier for the folder

name
string

Name of the folder

parentId
string | null

ID of the parent folder, if any

createdAt
string<date-time>

Timestamp when the folder was created

updatedAt
string<date-time>

Timestamp when the folder was last updated