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"
}
}
フォルダ
フォルダ作成
ワークスペースに新しいフォルダを作成します
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"
}
}
Body
フォルダ名
フォルダ所有者のユーザーID
フォルダアイコン
フォルダの色
フォルダがプライベートかどうか
親フォルダID
レスポンス
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"
}
}
⌘I