You can create a dataset using the Athina API. The API allows you to create a dataset with the following fields:

Required Fields

source
string
required
Source of the dataset creation. For creation via API, this field must be ‘api’
name
string
required
Name of the dataset. Name must be unique. If dataset with the same name already exists, API will throw 400
description
string
Description of the dataset
dataset_rows
array
Rows of the dataset.
Currently, a dataset can have a maximum of 1000 rows. If the number of rows > 1000, API will throw 400
Fields in a single dataset rowA dataset row can have any key-value pairs. Support data types for value are:
  • integer
  • string
  • boolean
  • object
  • array
Just make sure a particular key has the same type across all the rows. Otherwise API will throw 400 for failed validation. Example, if one of the keys is ‘query’, make sure ‘query’ has same data type across all the rows.