Skip to main content
POST
/
tabpfn
/
prepare_test_set_upload
Prepare test set upload
curl --request POST \
  --url https://api.priorlabs.ai/tabpfn/prepare_test_set_upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fitted_train_set_id": "323e4567-e89b-12d3-a456-426614174000",
  "x_test_info": {
    "filename": "X_test.csv",
    "size_bytes": 512,
    "content_hash": "ghi"
  }
}
'
{
  "test_set_upload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "x_test_info": {
    "signed_urls": [
      "<string>"
    ],
    "expires_at": 123,
    "required_headers": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer token for authentication, obtained after signing up and generating an API key.

Body

application/json
fitted_train_set_id
string<uuid>
required
x_test_info
FileInfo · object
required
force_reupload
boolean
default:false

Whether to force the upload of the file even if a file with the same hash already exists.

Response

200 - application/json

Test upload id and signed URLs

test_set_upload_id
string<uuid>
required
x_test_info
FileUploadInfo · object
required