Edit an episode in place; editing never confirms, confirm: true does
PATCH
/v1/projects/{projectId}/episodes/{episodeId}curl -X PATCH 'https://api.embodiflow.io/v1/projects/{projectId}/episodes/{episodeId}' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"startNs": 0,
"endNs": 0,
"task": {},
"outcome": "success",
"subtasks": [
{}
],
"tags": [
"string"
],
"splitTag": "train",
"excluded": true,
"comment": "string",
"commentAtNs": 0,
"confirm": true
}'认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- projectIdstring必填
- episodeIdstring必填
请求头参数
- 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.
请求体
Content-Typeapplication/json
- startNsnumber
Start of the episode in nanoseconds.
- endNsnumber
End of the episode in nanoseconds.
- taskobject | null
- outcomestring | null可选值successfailurepartial
- subtasksarray<object>
- tagsarray<string>
Replaces the tag list.
- splitTagstring | null可选值trainvaltest
- excludedboolean
- commentstring | null
- commentAtNsnumber | null
- confirmboolean
Confirm a to-review episode. Editing never confirms; this is the only confirm.
响应
Success
- dataobject必填
- subtasksarray<object>必填
- commentstring | null必填
- commentAtNsnumber | null必填
- episodeIdstring必填
- recordingIdstring必填
- recordingNamestring必填
- startNsnumber必填
- endNsnumber必填
- durationNsnumber必填
- cameraKeysarray<string>必填
- posterUrlstring | null必填
- taskobject | null必填
- outcomestring | null必填
- subtaskCountnumber必填
- tagsarray<string>必填
- attributesobject必填
- splitTagstring | null必填
- verdictstring必填可选值warningfailpassincompletenot_checked
- verdictReasonstring | null必填
- issueCountnumber必填
- rowVersionnumber必填
- confirmedBystring | null必填
- confirmedAtstring | null必填
- confidencenumber | null必填
- excludedone of必填
- provenancestring必填可选值humanai_proposedimportwhole
- reviewstring必填可选值to_reviewconfirmed
- semanticScorenumber
响应示例
{
"data": {
"subtasks": [
{
"startNs": 0,
"endNs": 0,
"description": {
"en": "string",
"zh": "string"
}
}
],
"comment": "string",
"commentAtNs": 0,
"episodeId": "string",
"recordingId": "string",
"recordingName": "string",
"startNs": 0,
"endNs": 0,
"durationNs": 0,
"cameraKeys": [
"string"
],
"posterUrl": "string",
"task": {
"en": "string",
"zh": "string"
},
"outcome": "string",
"subtaskCount": 0,
"tags": [
"string"
],
"attributes": {},
"splitTag": "string",
"verdict": "warning",
"verdictReason": "string",
"issueCount": 0,
"rowVersion": 0,
"confirmedBy": "string",
"confirmedAt": "string",
"confidence": 0,
"excluded": false,
"provenance": "human",
"review": "to_review",
"semanticScore": 0
}
}服务器https://api.embodiflow.io/v1