PUT
/
agents
/
{agent_id}
/
datasets
/
tune
/
{dataset_name}
curl --request PUT \
  --url https://api.contextual.ai/v1/agents/{agent_id}/datasets/tune/{dataset_name} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form dataset_type=tuning_set
{
  "version": "<string>",
  "name": "<string>",
  "type": "tuning_set"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agent_id
string
required

Agent ID associated with the tune dataset

dataset_name
string
required

Name of the tune dataset to append to

Body

multipart/form-data
dataset_type
enum<string>
required

Type of tune dataset which determines its schema and validation rules. Must match the dataset_type used at dataset creation time.

Available options:
tuning_set,
evaluation_set,
evaluation_set_prediction,
evaluation_run_result
file
file
required

JSONL or CSV file containing the entries to append to the tune dataset

Response

200
application/json
Successful Response

Response to POST /datasets request

version
string
required

Version number of the dataset

name
string
required

Name of the dataset

type
enum<string>
required

Type of the dataset

Available options:
tuning_set,
evaluation_set,
evaluation_set_prediction,
evaluation_run_result