/v1/databases表を作る
表(データベース)を作り、項目を足します。名前の列は最初からあります。例: シフト表なら 日付(DATE)・時間帯(SELECT)・担当(PERSON)。
送る項目JSON · 10項目
- titlestring必須
200文字まで
- parentPageIdstring
置くページ。なければ scope に置く
128文字まで
- scopeenum
PRIVATEWORKSPACEUNIT - unitIdstring
128文字まで
- layoutenum
TABLEBOARD - propertiesobject[]
30以下件
中の項目 4
- namestring必須
200文字まで
- typeenum必須
TEXTNUMBERDATESELECTMULTI_SELECTCHECKBOXPERSON - dateModeenum
DATE: 日付だけか、時刻もか
datedatetime - optionsstring[]
SELECT・MULTI_SELECT の選択肢
100以下件
返る項目data の中身 · 201
- idstring
- pageIdstring
- schemaRevisionnumber
- sourceKindstring
- propertiesobject[]
中の項目 6
- idstring
- namestring
- typestring
- writableboolean
- configobject | null
- optionsobject[]
中の項目 2
- idstring
- labelstring
起こりうるエラー共通のエラー
- 400invalid_request
送った値が正しくない。message にどこが違うかが入ります
- 403insufficient_scope
キーにこの入口の権限(scope)が付いていない。requiredScopes に必要な権限が入ります
/v1/databasescurl -X POST https://tooon.app/api/v1/databases \
-H "Authorization: Bearer $TOOON_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"title": "Webサイト制作の業務委託"
}'{
"data": {
"id": "clx8k2m0a0001",
"pageId": "clx8k2m0a0001",
"schemaRevision": 0,
"sourceKind": "…",
"properties": [
{
"id": "clx8k2m0a0001",
"name": "山田 太郎",
"type": "…",
"writable": true,
"config": {},
"options": [
{
"id": "clx8k2m0a0001",
"label": "…"
}
]
}
]
}
}/v1/databases/{id}表の項目
表(データベース)の項目(名前・種類・選択肢)を返します。行は /v1/pages/{pageId} で読みます。
パスの値
- idstring必須
128文字まで
返る項目data の中身 · 200
- idstring
- pageIdstring
- schemaRevisionnumber
- sourceKindstring
- propertiesobject[]
中の項目 6
- idstring
- namestring
- typestring
- writableboolean
- configobject | null
- optionsobject[]
中の項目 2
- idstring
- labelstring
起こりうるエラー共通のエラー
- 403insufficient_scope
キーにこの入口の権限(scope)が付いていない。requiredScopes に必要な権限が入ります
- 404not_found
対象がない、またはこのワークスペースのものではない
/v1/databases/{id}curl https://tooon.app/api/v1/databases/clx8k2m0a0001 \
-H "Authorization: Bearer $TOOON_API_KEY"{
"data": {
"id": "clx8k2m0a0001",
"pageId": "clx8k2m0a0001",
"schemaRevision": 0,
"sourceKind": "…",
"properties": [
{
"id": "clx8k2m0a0001",
"name": "山田 太郎",
"type": "…",
"writable": true,
"config": {},
"options": [
{
"id": "clx8k2m0a0001",
"label": "…"
}
]
}
]
}
}/v1/databases/{id}/rows表に行を足す
表に行を1〜20行まとめて足します。すべて足せるか、どれも足さないかのどちらかです。Tooon-Change-Reason ヘッダーに理由を書くと変更の記録に残ります。
パスの値
- idstring必須
128文字まで
送る項目JSON · 3項目
- rowsobject[]必須
1〜20件
中の項目 2
- titlestring
200文字まで
- valuesobject
項目名または項目ID → 値。名前の列は「名前」や title でも書けます。値は人が書く形で: 文字、数、true/false、日付 "2026-12-01"(時刻つきの項目は ISO 8601)、選択肢はラベルかID、複数選択・人・関連はその配列
返る項目data の中身 · 201
- idstring
- databaseIdstring
- rowIdsstring[]
起こりうるエラー共通のエラー
- 400invalid_request
送った値が正しくない。message にどこが違うかが入ります
- 403insufficient_scope
キーにこの入口の権限(scope)が付いていない。requiredScopes に必要な権限が入ります
- 404not_found
対象がない、またはこのワークスペースのものではない
/v1/…/{id}/rowscurl -X POST https://tooon.app/api/v1/databases/clx8k2m0a0001/rows \
-H "Authorization: Bearer $TOOON_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"rows": [
{
"title": "Webサイト制作の業務委託",
"values": {}
}
]
}'{
"data": {
"id": "clx8k2m0a0001",
"databaseId": "clx8k2m0a0001",
"rowIds": [
"…"
]
}
}/v1/databases/{id}/rows/{rowId}表の行
表の1行を、項目名 → 値 の形で返します。
パスの値
- idstring必須
128文字まで
- rowIdstring必須
128文字まで
返る項目data の中身 · 200
- databaseIdstring
- pageIdstring
- titlestring
- revisionstring
行と項目の版。更新時に expectedRevision として渡せます
- valuesobject
起こりうるエラー共通のエラー
- 403insufficient_scope
キーにこの入口の権限(scope)が付いていない。requiredScopes に必要な権限が入ります
- 404not_found
対象がない、またはこのワークスペースのものではない
/v1/…/{id}/rows/{rowId}curl https://tooon.app/api/v1/databases/clx8k2m0a0001/rows/clx8k2m0a0001 \
-H "Authorization: Bearer $TOOON_API_KEY"{
"data": {
"databaseId": "clx8k2m0a0001",
"pageId": "clx8k2m0a0001",
"title": "Webサイト制作の業務委託",
"revision": "…",
"values": {}
}
}/v1/databases/{id}/rows/{rowId}表の行を変える
渡した項目だけを変えます(項目名または項目ID → 値)。名前を変えるときは「名前」や title に書きます。Tooon-Change-Reason ヘッダーに理由を書くと変更の記録に残ります。
パスの値
- idstring必須
128文字まで
- rowIdstring必須
128文字まで
送る項目JSON · 2項目
- valuesobject必須
項目名または項目ID → 値。名前の列は「名前」や title でも書けます。値は人が書く形で: 文字、数、true/false、日付 "2026-12-01"(時刻つきの項目は ISO 8601)、選択肢はラベルかID、複数選択・人・関連はその配列
- expectedRevisionstring
GETで読んだrevision。変わっていたら409
返る項目data の中身 · 200
- databaseIdstring
- pageIdstring
- titlestring
- revisionstring
行と項目の版。更新時に expectedRevision として渡せます
- valuesobject
起こりうるエラー共通のエラー
- 400invalid_request
送った値が正しくない。message にどこが違うかが入ります
- 403insufficient_scope
キーにこの入口の権限(scope)が付いていない。requiredScopes に必要な権限が入ります
- 404not_found
対象がない、またはこのワークスペースのものではない
/v1/…/{id}/rows/{rowId}curl -X PATCH https://tooon.app/api/v1/databases/clx8k2m0a0001/rows/clx8k2m0a0001 \
-H "Authorization: Bearer $TOOON_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"values": {}
}'{
"data": {
"databaseId": "clx8k2m0a0001",
"pageId": "clx8k2m0a0001",
"title": "Webサイト制作の業務委託",
"revision": "…",
"values": {}
}
}