Skip to content

Shared-Xorb R2 GET plan for a bounded file page

POST
/v1/datasets/download/presign-batch
curl --request POST \
--url https://example.com/v1/datasets/download/presign-batch \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "file_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "ttl_seconds": 3600 }'

Presign each distinct Xorb once across an ownership-checked file page.

x-api-key
string | null
Media type application/json
DownloadPresignBatchBody
object
name
required
string
file_ids
required
Array<string>
>= 1 items <= 4096 items
ttl_seconds
integer
default: 3600 >= 60 <= 86400

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationError
object
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}