QamaqQamaq
PATCH

更新文件夹

/folders/{folder_id}

更新文件夹属性。

参数

路径参数

名称类型描述
folder_id必填
string

The folder ID

请求体

application/json必填
{
name:string

New folder name

parent_id:string| null

New parent folder ID

}

代码示例

curl -X PATCH "https://api.qamaq.io/api/v1/folders/{folder_id}" \
  -H "Authorization: Bearer qmq_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

响应

200Folder updated successfully

Response Body

{
id:string
name:string
parent_id:string| null
}