Apply change operations to a recording's episodes in one transaction; answers the new document
curl -X POST 'https://api.embodiflow.io/v1/projects/{projectId}/recordings/{recordingId}/episode-changes' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"changes": [
{}
]
}'认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- projectIdstring必填
- recordingIdstring必填
请求头参数
- If-Matchstring
Optional precondition. A matching tag proceeds and returns the new ETag. A stale tag returns 412 PRECONDITION_FAILED with no write. Absent proceeds (opt-in this release). If-Match: * succeeds when the resource exists. Malformed values return 400 IF_MATCH_INVALID.
- Idempotency-Keystring
Optional idempotency key, at most 255 characters (UUIDv4 recommended). A repeated key returns the first response byte-for-byte; a 5xx is not stored, so the same key runs the request again. The same key with a different body, or a second in-flight request, returns 409 IDEMPOTENCY_CONFLICT. Keys are unique per tenant and retained for 24 hours.
请求体
- changesarray<object>必填
Change operations applied in order (at most 200): create, update, delete, restore, split, merge, unmerge, confirm, include.
响应
Success
- dataobject必填
- recordingIdstring必填
- revisionnumber必填
- timelineobject必填
- episodesarray<EpisodeDocumentEpisodeDto>必填
- proposalsobject必填
{
"data": {
"recordingId": "string",
"revision": 0,
"timeline": {
"fps": 0,
"frameCount": 0
},
"episodes": [
{
"id": "string",
"startNs": 0,
"endNs": 0,
"task": {
"en": "string",
"zh": "string"
},
"subtasks": [
{
"startNs": 0,
"endNs": 0,
"description": {}
}
],
"outcome": "success",
"tags": [
"string"
],
"review": "to_review",
"origin": "human",
"confidence": 0,
"excluded": false,
"status": {
"verdict": "warning",
"verdictReason": "string",
"issueCount": 0
}
}
],
"proposals": {
"blocked": "episodes",
"deleted": false
}
}
}