ad855d921ee9

latestOpenAPI 3.0.32026-08-14137304312.9 KB
training-data

Upload text content as training data

Uploads plain text content as a training data document.

Rate limit: 10 requests per minute

post/training-data/upload-content

Request body

contentstring

The text content to upload.

external_idstring

External ID for idempotent operations (optional).

file_namestring

The name for the uploaded file.

training_data_idstring

The ID of an existing training data container to upload to (optional).

training_data_namestring

The name of a new training data container (required if training_data_id not provided).

visibility'everyone' | 'user_only' | 'ai_agent_only'

Visibility of the training data. Defaults to "everyone".

Example request

{
  "visibility": "everyone"
}

Response

request_idstring

Example response

{
  "data": {
    "visibility": "everyone"
  }
}