Report Templates
レポートテンプレートを作成
POST
/api/v1alpha1/report-templatesreport-template headとimmutableなversion 1を作成します。
認証
apiKey 認証Bearer <token>
場所: header
ヘッダーパラメーター
Idempotency-Key?string
このPOSTを安全にretryするための任意のkeyです。keyは24時間保持され、request payloadと具体的なpath parameterと比較されます。
長さ
length <= 255リクエストボディ
application/json
TypeScript 型定義
TypeScript では request body 型を使用します。
レスポンスボディ
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/v1alpha1/report-templates" \ -H "Authorization: Bearer $DEEPFRAME_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "blocks": [ { "answer_key": "", "columns": [ { "key": "", "label": "" } ], "field_labels": [ { "key": "", "label": "" } ], "group_by": "", "label": "", "mapping": {}, "sort_by": "", "sort_direction": "asc", "type": "timeline" } ], "description": "Reusable report presentation.", "language": "ja", "name": "Warehouse safety report" }'{ "anonymous": false, "created_at": "2026-08-22T10:00:00.000Z", "created_by": "user_0190b5d4-7e1f-7a2b-9c3d-1234567890ab", "description": "Reusable report presentation.", "id": "tpl_0190b5d4-7e1f-7a2b-9c3d-1234567890ab", "latest_version": 3, "name": "Warehouse safety report", "status": "active", "updated_at": "2026-08-22T10:00:00.000Z", "updated_by": "user_0190b5d4-7e1f-7a2b-9c3d-1234567890ab"}