メインコンテンツへスキップ
POST
/
v1
/
folders

curl --request POST \
 --url https://api.caret.so/v1/folders \
 --header 'Authorization: Bearer <your_api_key>' \
 --header 'Content-Type: application/json' \
 --data '{
"name": "Project Alpha",
"ownerUserId": "usr_123456789",
"icon": "📁",
"color": "#4A90E2",
"isPrivate": false
}'

{
  "folder": {
    "id": "fld_123456789",
    "name": "Project Alpha",
    "icon": "📁",
    "parentFolderId": null,
    "createdAt": "2024-01-28T12:00:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.caret.so/llms.txt

Use this file to discover all available pages before exploring further.

Body

name
string
必須
フォルダ名
ownerUserId
string
必須
フォルダ所有者のユーザーID
icon
string
フォルダアイコン
color
string
フォルダの色
isPrivate
boolean
フォルダがプライベートかどうか
parentFolderId
string
親フォルダID

レスポンス

folder
Folder

curl --request POST \
 --url https://api.caret.so/v1/folders \
 --header 'Authorization: Bearer <your_api_key>' \
 --header 'Content-Type: application/json' \
 --data '{
"name": "Project Alpha",
"ownerUserId": "usr_123456789",
"icon": "📁",
"color": "#4A90E2",
"isPrivate": false
}'

{
  "folder": {
    "id": "fld_123456789",
    "name": "Project Alpha",
    "icon": "📁",
    "parentFolderId": null,
    "createdAt": "2024-01-28T12:00:00Z"
  }
}