# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json imports: commons: ./commons.yml pagination: ./utils/pagination.yml service: auth: true base-path: /api/public endpoints: create: method: POST docs: Create a dataset item path: /dataset-items request: CreateDatasetItemRequest response: commons.DatasetItem get: docs: Get a dataset item method: GET path: /dataset-items/{id} path-parameters: id: type: string response: commons.DatasetItem list: docs: | Get dataset items. Optionally specify a version to get the items as they existed at that point in time. Note: If version parameter is provided, datasetName must also be provided. method: GET path: /dataset-items request: name: GetDatasetItemsRequest query-parameters: datasetName: optional sourceTraceId: optional sourceObservationId: optional version: type: optional docs: | ISO 8601 timestamp (RFC 3339, Section 5.6) in UTC (e.g., "2026-01-21T14:35:42Z"). If provided, returns state of dataset at this timestamp. If not provided, returns the latest version. Requires datasetName to be specified. page: type: optional docs: page number, starts at 1 limit: type: optional docs: limit of items per page response: PaginatedDatasetItems delete: docs: Delete a dataset item and all its run items. This action is irreversible. method: DELETE path: /dataset-items/{id} path-parameters: id: type: string response: DeleteDatasetItemResponse types: DeleteDatasetItemResponse: properties: message: type: string docs: Success message after deletion CreateDatasetItemRequest: properties: datasetName: string input: optional expectedOutput: optional metadata: optional sourceTraceId: optional sourceObservationId: optional id: type: optional docs: Dataset items are upserted on their id. Id needs to be unique (project-level) and cannot be reused across datasets. status: type: optional docs: Defaults to ACTIVE for newly created items PaginatedDatasetItems: properties: data: list meta: pagination.MetaResponse