What an import would create, without creating anything: the pinned commit, licence, episodes, size, robot type and cameras.
POST
/v1/projects/{projectId}/hf-imports/previewscurl -X POST 'https://api.embodiflow.io/v1/projects/{projectId}/hf-imports/previews' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"repoId": "string",
"revision": "string",
"accessToken": "string"
}'认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- projectIdstring必填
请求头参数
- 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.
请求体
Content-Typeapplication/json
- repoIdstring必填
`owner/name`, optionally `owner/name@revision` or a dataset URL.
- revisionstring | null
Branch, tag or commit; default `main`.
- accessTokenstring | null
Read token for a private or gated dataset. Write-only: used for this request (preview) or handed once to the import Job, never stored.
响应
Success
- dataobject必填
- repoIdstring必填
- requestedRevisionstring必填
- shastring必填
- licensestring | null必填
- namestring必填
- codebaseVersionstring必填
- robotTypestring | null必填
- fpsnumber | null必填
- totalEpisodesnumber必填
- camerasarray<string>必填
- fileCountnumber必填
- totalBytesnumber必填
- maxBytesnumber必填
- warningsarray<object>必填
- tokenRequiredone of必填
响应示例
{
"data": {
"repoId": "string",
"requestedRevision": "string",
"sha": "string",
"license": "string",
"name": "string",
"codebaseVersion": "string",
"robotType": "string",
"fps": 0,
"totalEpisodes": 0,
"cameras": [
"string"
],
"fileCount": 0,
"totalBytes": 0,
"maxBytes": 0,
"warnings": [
{
"code": "string",
"robotType": "string",
"missing": [
"string"
]
}
],
"tokenRequired": false
}
}服务器https://api.embodiflow.io/v1