What a test run on each recording would stage with a window: bytes of the cut, bytes whole, and whether it fits (the sample picker shows it before Run). Metadata only; nothing is created.
POST
/v1/algorithms/sample-runs/input-estimatescurl -X POST 'https://api.embodiflow.io/v1/algorithms/sample-runs/input-estimates' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"recordingIds": [
"00000000-0000-0000-0000-000000000000"
],
"reads": "recording",
"window": {
"seconds": 0
},
"episodeIndex": 0,
"requires": {
"kind": "robot",
"format": "string"
}
}'认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
请求体
Content-Typeapplication/json
- recordingIdsarray<string (uuid)>必填
The recordings to estimate, at most 50 (a page of the sample picker).
- readsstring
`raw`: estimate the uploaded files a run of an algorithm that reads them stages whole (`window` must be null).
可选值recordingraw - windowobject | null必填
- secondsnumber必填
- episodeIndexnumber
- requiresobject
The algorithm's `requires` on `kind` and `format`; a recording that does not meet them is `incompatible`.
- kindstring可选值robothuman
- formatstring
响应
One estimate per recording, in request order
- dataarray<AlgorithmSampleRunInputEstimateDto>必填
- recordingIdstring必填
- statusstring必填可选值oktoo_largenot_readyno_episodeincompatible
- unmetarray<AlgorithmSampleRunUnmetRequirementDto>必填
- stageBytesnumber | null必填
- wholeBytesnumber | null必填
- windowedone of必填
- limitBytesnumber必填
响应示例
{
"data": [
{
"recordingId": "string",
"status": "ok",
"unmet": [
{
"fact": "kind",
"required": "string",
"actual": "string"
}
],
"stageBytes": 0,
"wholeBytes": 0,
"windowed": false,
"limitBytes": 0
}
]
}服务器https://api.embodiflow.io/v1