Rename an upload batch (`name: null` clears it). Optional `If-Match`; a stale tag returns 412 PRECONDITION_FAILED.
PATCH
/v1/upload-batches/{batchId}curl -X PATCH 'https://api.embodiflow.io/v1/upload-batches/{batchId}' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"name": "string"
}'认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- batchIdstring必填
请求头参数
- 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
- namestring | null必填
响应
Success
- dataobject必填
- idstring必填
- tenantIdstring必填
- projectIdstring必填
- recordingIdstring | null必填
- sourceTypestring必填
- statusstring必填
- namestring | null必填
- createdAtstring必填
- updatedAtstring必填
- lastActivityAtstring必填
- idleone of必填
- canDiscardone of必填
- totalSessionsnumber
- completedSessionsnumber
- failedSessionsnumber
- recordingCountnumber
- latestRecordingPlanStatusstring | null
- materializationStatusstring | null
- latestRunobject | null必填
- runningStepIdstring | null
- recordingsWaitingForImagenumber
- failureobject必填
- processingRefusedobject | null
- submitRefusalobject | null
- processedAtstring | null必填
- processingOutcomestring | null必填可选值succeededfailedcancelledpartially_succeeded
- failedRecordingCountnumber必填
- withoutProcessingone of必填
- sourceobject
- importProgressobject
响应示例
{
"data": {
"id": "string",
"tenantId": "string",
"projectId": "string",
"recordingId": "string",
"sourceType": "string",
"status": "string",
"name": "string",
"createdAt": "string",
"updatedAt": "string",
"lastActivityAt": "string",
"idle": false,
"canDiscard": false,
"totalSessions": 0,
"completedSessions": 0,
"failedSessions": 0,
"recordingCount": 0,
"latestRecordingPlanStatus": "string",
"materializationStatus": "string",
"latestRun": {
"id": "string",
"status": "string",
"recordingTally": {
"total": 0,
"usable": 0,
"gateRejected": 0,
"failed": 0,
"skipped": 0,
"tested": 0,
"unfinished": 0
}
},
"runningStepId": "string",
"recordingsWaitingForImage": 0,
"failure": {
"code": "string",
"reason": "string",
"stepId": "string",
"stepName": "string",
"stepAlgorithm": {
"slug": "string",
"title": "string",
"official": false
},
"stepRunId": "string",
"runId": "string",
"stepErrorCode": "string"
},
"processingRefused": {
"code": "string"
},
"submitRefusal": {
"code": "string",
"message": "string"
},
"processedAt": "string",
"processingOutcome": "succeeded",
"failedRecordingCount": 0,
"withoutProcessing": false,
"source": {
"hub": "huggingface",
"repoId": "string",
"requestedRevision": "string",
"sha": "string",
"license": "string"
},
"importProgress": {
"state": "queued",
"filesDone": 0,
"filesTotal": 0,
"bytesDone": 0,
"bytesTotal": 0,
"updatedAt": "string"
}
}
}服务器https://api.embodiflow.io/v1