POST
/
api
/
trpc
/
datasets.createDataset
{
  "runName": "string",
  "runDescription": "string",
  "metadata": null,
  "datasetItemId": "string",
  "observationId": "string",
  "traceId": "string"
}
{
  "id": "<string>",
  "status": {},
  "input": null,
  "expectedOutput": null,
  "metadata": null,
  "sourceTraceId": "<string>",
  "sourceObservationId": "<string>",
  "datasetId": "<string>",
  "datasetName": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}
{
  "runName": "string",
  "runDescription": "string",
  "metadata": null,
  "datasetItemId": "string",
  "observationId": "string",
  "traceId": "string"
}

Response Description

Below you will see the description of the dataset item response
id
string
required
Unique identifier for the dataset item.
status
enum
required
Status of the dataset item. Allowed values: ACTIVE | ARCHIVED.
input
null
Input data for the dataset item (optional).
expectedOutput
null
Expected output data for the dataset item (optional).
metadata
null
Metadata associated with the dataset item (optional).
sourceTraceId
string
Trace ID of the data source (optional).
sourceObservationId
string
Observation ID of the data source (optional).
datasetId
string
required
Unique identifier of the associated dataset.
datasetName
string
required
Name of the associated dataset.
createdAt
Date
required
Timestamp indicating when the dataset item was created.
updatedAt
Date
required
Timestamp indicating when the dataset item was last updated.

Code Response

Exemples of Response Code
200
Request Successful Response
400
Request Failure