Create an upload batch from a path+size manifest. JSON body ceiling is 4 MiB on this route only (global public JSON stays 100kb). Exceeding it returns 413 PAYLOAD_TOO_LARGE. File bytes are not accepted here; clients upload objects directly to storage. With `sampleForFormatId` the batch carries a test sample for the draft of a team data format (FV-20c): it needs `algorithm:write`, `sourceType` `team-format` and files with an extension the draft card declares, and the sample is used only for that format's sample runs.
curl -X POST 'https://api.embodiflow.io/v1/projects/{projectId}/upload-batches' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"dataSource": "string",
"dataFormat": "string",
"sourceKind": "human",
"recordingShape": "continuous",
"vendorSchema": "string",
"taskId": "string",
"task": "string",
"durationS": 0,
"sourceEpisodes": [
{
"taskId": "string",
"label": "string",
"id": "string",
"startS": 0,
"endS": 0
}
],
"sampleForFormatId": "00000000-0000-0000-0000-000000000000",
"sourceType": "string",
"metadata": {},
"manifestFiles": [
{
"role": "calibration",
"deviceMeta": {},
"lerobotInfo": {},
"originalFilename": "string",
"relativePath": "string",
"contentType": "string",
"sizeBytes": 0,
"checksumExpected": "string"
}
],
"groupingOverrides": [
{
"targetRecordingKey": "string",
"targetRecordingName": "string",
"relativePaths": [
"string"
]
}
]
}'Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Path parameters
- projectIdstringrequired
Header parameters
- 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.
Request body
- dataSourcestring | null
Optional recording source facet. Only ego_human is accepted when present. Omit for robot recordings. Literal ego_human (underscore); ego-human is rejected.
- dataFormatstring | null
- sourceKindstringAllowed valueshumanrobotumi
- recordingShapestringAllowed valuescontinuoussingle_taskpresegmented
- vendorSchemastring | null
- taskIdstring | null
- taskstring | null
Robot task text; wins over the project default (FV-09).
- durationSnumber | null
- sourceEpisodesarray<ImportSourceEpisodeBodyDto>
- taskIdstring | null
- labelstring | null
- idstringrequired
- startSnumberrequired
- endSnumberrequired
- sampleForFormatIdstring (uuid)
Upload a test sample for the draft of this team data format (FV-20c). The sample is only used for that draft's sample runs; it is never listed, counted, versioned or exported. Needs `algorithm:write` and sourceType `team-format`.
- sourceTypestringrequired
- metadataobject
- manifestFilesarray<CreateUploadSessionFileBodyDto>
- rolestring | nullAllowed valuescalibrationmappingmedia
- deviceMetaobject | null
- lerobotInfoobject | null
The parsed content of a LeRobot folder's `meta/info.json` (at most 1 MiB): the plan counts a LeRobot v3 dataset's episodes from it before any bytes move. Advisory; submit re-reads the uploaded copy. Ignored for every other file.
- originalFilenamestringrequired
- relativePathstringrequired
- contentTypestring | null
- sizeBytesnumberrequired
- checksumExpectedstring | null
- groupingOverridesarray<UploadGroupingOverrideBodyDto>
- targetRecordingKeystringrequired
- targetRecordingNamestringrequired
- relativePathsarray<string>required
Responses
Success
- dataobjectrequired
- batchobjectrequired
- recordingPlanobjectrequired
{
"data": {
"batch": {
"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"
}
},
"recordingPlan": {
"status": "ready",
"projectType": "string",
"sourceType": "string",
"fileCount": 0,
"totalBytes": 0,
"recordings": [
{
"key": "string",
"name": "string",
"sourceType": "string",
"fileCount": 0,
"totalBytes": 0,
"files": [
{}
],
"groupingMode": "directory",
"rootPath": "string"
}
],
"issues": [
{
"code": "string",
"severity": "warning",
"message": "string",
"relativePaths": [
"string"
]
}
],
"ignoredFiles": [
"string"
]
}
}
}