The file sessions of the batch with their planned paths, oldest first, so an interrupted upload can be resumed: re-picked files pair by path and size, and landed files are skipped. Issues no upload URL.
GET
/v1/upload-batches/{batchId}/upload-sessionscurl -X GET 'https://api.embodiflow.io/v1/upload-batches/{batchId}/upload-sessions' \
-H "Authorization: Bearer $EMBODIFLOW_PAT"认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- batchIdstring必填
查询参数
- pageSizenumber
Page size (default 25, maximum 100). Over-maximum is refused.
- pageTokenstring
Opaque page token from the previous response.
响应
Success
- dataarray<UploadBatchSessionDto>必填
- relativePathstring必填
- sizeBytesnumber | null必填
- checksumExpectedstring | null必填
- idstring必填
- uploadBatchIdstring必填
- storageBucketIdstring | null
- objectKeystring必填
- originalFilenamestring必填
- uploadModestring必填可选值singlemultipart
- statusstring必填
- expiresAtstring必填
- putUrlstring
- providerUploadIdstring | null
- completedAtstring | null
- storageObjectIdstring | null
- errorobject
- writeCredentialsobject
- partSizeBytesnumber
- nextPageTokenstring
Opaque AIP-158 page token. Omitted when the collection is exhausted.
- metaobject必填
- pageSizenumber必填
- requestIdstring
响应示例
{
"data": [
{
"relativePath": "string",
"sizeBytes": 0,
"checksumExpected": "string",
"id": "string",
"uploadBatchId": "string",
"storageBucketId": "string",
"objectKey": "string",
"originalFilename": "string",
"uploadMode": "single",
"status": "string",
"expiresAt": "string",
"putUrl": "string",
"providerUploadId": "string",
"completedAt": "string",
"storageObjectId": "string",
"error": {
"code": "string",
"message": "string"
},
"writeCredentials": {
"accessKeyId": "string",
"secretAccessKey": "string",
"sessionToken": "string",
"expiresAt": "string",
"objectKey": "string",
"prefix": "string",
"provider": "string",
"objectBaseUrl": "string",
"signingRegion": "string"
},
"partSizeBytes": 0
}
],
"nextPageToken": "string",
"meta": {
"pageSize": 0,
"requestId": "string"
}
}服务器https://api.embodiflow.io/v1