POST
创建文件夹
/folders在知识库中创建新文件夹。
请求体
application/json必填
{
name*:stringFolder name
parent_id:string| nullParent folder ID (null for root)
}
代码示例
curl -X POST "https://api.qamaq.io/api/v1/folders" \
-H "Authorization: Bearer qmq_your_api_key" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'响应
201Folder created successfully
Response Body
{
id:stringname:stringparent_id:string| nullcreated_at:string (date-time)}