v2

latestOpenAPI 3.1.02026-07-2670186350.6 KB
datasets

Create Dataset Entry

post/datasets/{dataset_id}

Path parameters

dataset_idstring uuid required

The id of the dataset

The id of the dataset

Request body

{"stackTrail":"components:schemas:CreateDatasetEntryRequest:properties:input","oasType":"schema","type":"unknown","title":"Input","description":"The input to the dataset entry","example":{"x":4,"y":5}}
{"stackTrail":"components:schemas:CreateDatasetEntryRequest:properties:output","oasType":"schema","type":"unknown","title":"Output","description":"The output to the dataset entry","example":{"sum":9}}
expectedstring nullable

The expected output to the dataset entry, this is an optionally edited version of the output

commentstring nullable

The comment to the dataset entry

Example request

{
  "input": {
    "x": 4,
    "y": 5
  },
  "output": {
    "sum": 9
  },
  "expected": "This `was` the output to the dataset entry",
  "comment": "This is an example of how one can edit the output"
}

Response

Successful Response

idstring uuid required

The id of the dataset entry

inputstring required

The input to the dataset entry

outputstring required

The output to the dataset entry

expectedstring nullable

The expected output to the dataset entry, this is an optionally edited version of the output

commentstring nullable

The comment to the dataset entry

Example response

{
  "input": "Given this input, what is the output?",
  "output": "This is the output to the dataset entry",
  "expected": "This `was` the output to the dataset entry",
  "comment": "This is an example of how one can edit the output"
}