Skip to main content
POST
/
api
/
uploads
/
dataset
/
{dataset_id}
/
text
Upload Text Dataset Items
curl --request POST \
  --url https://api.example.com/api/uploads/dataset/{dataset_id}/text \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dataset_name": "<string>",
  "branch_name": "<string>",
  "s3_url": "<string>",
  "documents": [
    {
      "id": "<string>",
      "title": "<string>",
      "text": "<string>",
      "content_base64": "<string>",
      "mime_type": "<string>"
    }
  ],
  "off_topic_collective": true,
  "webhook_url": "<string>",
  "webhook_on_complete": true,
  "webhook_on_failure": true,
  "repo_url": "<string>",
  "repo_access_token": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Headers

X-API-Key
string | null

Path Parameters

dataset_id
string
required

Query Parameters

mode
string | null
default:append

Cookies

antidote_session
string | null

Body

application/json
dataset_name
string | null
branch_name
string | null
s3_url
string | null
documents
TextDocumentInput · object[]
off_topic_collective
boolean | null
webhook_url
string | null
webhook_on_complete
boolean | null
webhook_on_failure
boolean | null
repo_url
string | null
repo_access_token
string | null

Response

Successful Response