Skip to content

Begin a dataset upload

POST
/v1/datasets/upload/begin
curl --request POST \
--url https://example.com/v1/datasets/upload/begin \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "source_format": "example" }'

Get-or-create the customer’s repo for name (under their own org) and return its handle PLUS its current file tree (prior versions) in one round-trip — the SDK uses the tree for the warm/edit fast paths. Idempotent.

x-api-key
string | null
Media type application/json
UploadBeginBody
object
name
required
string
source_format
string | null
Example generated
{
"name": "example",
"source_format": "example"
}

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": {}
}
]
}