Evaluation Datasets
Add question to dataset
Adds a new question-answer pair to an existing dataset
post/datasets/{dataset_id}
Request
- Base URLhttps://apis.smartly.ai
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
dataset_idstring required
ID of the dataset to add the question to
Request body
Example request
{
"question": "What are your business hours?",
"answer": "We are open Monday to Friday, 9am to 5pm"
}Response
Question successfully added
Example response
{
"message": "Operation completed successfully"
}Changes
No recorded changes to this operation across all 1 revision of this API.