Skip to main content
POST
/
v1
/
datasets
/
uploads
Create a new multipart upload for a dataset
curl --request POST \
  --url https://api.tokenfactory.nebius.com/v1/datasets/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "schema": [
    {
      "name": "<string>",
      "type": {
        "name": "string"
      }
    }
  ],
  "folder": "<string>"
}
'
{
  "id": "<string>",
  "upload_info": {
    "status": "PENDING",
    "dataset": {
      "name": "<string>",
      "schema": [
        {
          "name": "<string>",
          "type": {
            "name": "string"
          }
        }
      ],
      "folder": "<string>",
      "id": "4d89c87498354518b92fa02fc0ad8720"
    },
    "created_at": 123,
    "error": null,
    "completed_at": 1760109124,
    "ai_project_id": "example_project"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

ai_project_id
string | null

Body

application/json
name
string
required

ID of the dataset.

Example:

"example_dataset"

schema
ColumnSchema · object[]
required

Dataset schema definition.

Example:
{
"name": "text",
"type": { "name": "string" }
}
folder
string
required

Folder path where the dataset is stored.

Example:

"/some/folder"

Response

Successful Response

id
string
required

The object identifier, which can be referenced in the API endpoints.

Example:

"4d89c87498354518b92fa02fc0ad8720"

upload_info
UploadInfoResponse · object
required

Detailed information about the upload