Profiles
分析プロファイルを作成
POST
/api/v1alpha1/profilesプロファイルheadとimmutableなversion 1を作成します。新しいrunでは返されたprofile idを参照できます。
認証
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/profiles" \ -H "Authorization: Bearer $DEEPFRAME_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "answer_specs": [ { "aggregation_level": "video", "answer_key": "", "answer_type": "timeline", "coverage": "complete", "evidence": { "accepted_types": [ "clip" ], "per_field": true, "required": true }, "fields": [ { "description": "", "key": "", "label": "", "required": true, "type": "string" } ], "temporal_granularity": "semantic_segment", "temporal_scope": "windowed" } ], "description": "Reusable profile for safety reviews.", "instructions": "", "name": "Warehouse safety profile" }'{ "anonymous": false, "created_at": "2026-08-22T10:00:00.000Z", "created_by": "user_0190b5d4-7e1f-7a2b-9c3d-1234567890ab", "description": "Reusable profile for safety reviews.", "id": "prof_0190b5d4-7e1f-7a2b-9c3d-1234567890ab", "latest_version": 3, "name": "Warehouse safety profile", "status": "active", "updated_at": "2026-08-22T10:00:00.000Z", "updated_by": "user_0190b5d4-7e1f-7a2b-9c3d-1234567890ab"}