> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Append traces to a dataset

> Runs another fixed query and adds only unseen trace/turn pairs while preserving the original split configuration.



## OpenAPI

````yaml /openapi/model-distillation/management.openapi.yaml post /tasks/{alias}/datasets/{datasetId}/append
openapi: 3.1.0
info:
  title: Model Distillation Management API
  version: 1.0.0
  description: |
    Manage providers, tasks, routing versions, datasets, relabeling, fine-tunes,
    evaluations, analytics, and closed-loop training Automation. This is the
    same API used by Model Distillation Studio.
servers:
  - url: https://distillation.training.wandb.ai/v1
    description: Production
security:
  - WandbApiKey: []
tags:
  - name: Providers
    description: OpenAI-compatible endpoints, credentials, model catalogs, and pricing.
  - name: Tasks
    description: Stable task identity and task-level information.
  - name: Routing
    description: Versioned model targets, weights, and request parameters.
  - name: Datasets
    description: >-
      Reproducible data snapshots, entries, relabeling, and reusable model
      outputs.
  - name: Fine-tunes
    description: Supervised fine-tuning jobs and hosted model artifacts.
  - name: Evaluations
    description: Head-to-head, exact-match, and categorization evaluations.
  - name: Automation
    description: Closed-loop dataset, sweep, evaluation, and promotion runs.
  - name: Analytics
    description: Task traffic, token, error, and estimated-cost read models.
  - name: Studio preferences
    description: Per-task display preferences used by Studio.
paths:
  /tasks/{alias}/datasets/{datasetId}/append:
    parameters:
      - $ref: '#/components/parameters/WandbEntity'
      - $ref: '#/components/parameters/TaskAlias'
      - $ref: '#/components/parameters/DatasetId'
    post:
      tags:
        - Datasets
      summary: Append traces to a dataset
      description: >-
        Runs another fixed query and adds only unseen trace/turn pairs while
        preserving the original split configuration.
      operationId: appendDataset
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                params:
                  type: object
                  properties:
                    query:
                      type: object
                      properties:
                        source:
                          anyOf:
                            - type: string
                              const: task
                            - type: object
                              properties:
                                entity:
                                  type: string
                                  minLength: 1
                                project:
                                  type: string
                                  minLength: 1
                              required:
                                - entity
                                - project
                              additionalProperties: false
                        after:
                          type: string
                          format: date-time
                          pattern: >-
                            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
                        before:
                          type: string
                          format: date-time
                          pattern: >-
                            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
                        filters:
                          default: {}
                          type: object
                          properties:
                            task_version:
                              type: integer
                              exclusiveMinimum: 0
                              maximum: 2147483647
                            resolved_provider:
                              type: string
                              pattern: ^[a-z0-9][a-z0-9_-]{0,63}$
                            resolved_model:
                              type: string
                              minLength: 1
                            metadata:
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties: {}
                          additionalProperties: false
                      required:
                        - source
                        - after
                        - before
                      additionalProperties: false
                    sampling:
                      type: object
                      properties:
                        strategy:
                          type: string
                          enum:
                            - random
                            - first
                        limit:
                          type: integer
                          exclusiveMinimum: 0
                          maximum: 100000
                      required:
                        - strategy
                        - limit
                      additionalProperties: false
                    split:
                      type: object
                      additionalProperties: false
                      required:
                        - val
                        - by
                      properties:
                        val:
                          type: number
                          minimum: 0
                          maximum: 1
                        by:
                          type: string
                          const: trace
                  required:
                    - query
                    - sampling
                    - split
                  additionalProperties: false
              required:
                - params
              additionalProperties: false
      responses:
        '202':
          description: Append job was queued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Dataset'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    WandbEntity:
      name: Wandb-Entity
      in: header
      required: false
      description: >-
        Accessible personal or team entity. Omit to use the API key's default
        entity.
      schema:
        type: string
    TaskAlias:
      name: alias
      in: path
      required: true
      schema:
        type: string
        pattern: ^[a-z0-9-]{1,64}$
    DatasetId:
      name: datasetId
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    Dataset:
      type: object
      additionalProperties: true
      required:
        - id
        - task_id
        - name
        - params
        - revision
        - status
        - build_progress
        - entry_counts
        - relabel_runs
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
        task_id:
          type: string
          format: uuid
        name:
          type: string
        params:
          $ref: '#/components/schemas/DatasetParams'
        revision:
          type: integer
        status:
          type: string
          enum:
            - building
            - ready
            - failed
        build_progress:
          type:
            - object
            - 'null'
          required:
            - stage
            - processed
            - total
            - imported
          properties:
            stage:
              type: string
              enum:
                - discovering
                - importing
                - finalizing
            processed:
              type: integer
            total:
              type:
                - integer
                - 'null'
            imported:
              type: integer
        entry_counts:
          type: object
          required:
            - total
            - train
            - val
          properties:
            total:
              type: integer
            train:
              type: integer
            val:
              type: integer
        relabel_runs:
          type: array
          items:
            $ref: '#/components/schemas/RelabelRun'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    DatasetParams:
      type: object
      additionalProperties: false
      required:
        - query
        - sampling
        - split
      properties:
        query:
          $ref: '#/components/schemas/DatasetQuery'
        sampling:
          type: object
          additionalProperties: false
          required:
            - strategy
            - limit
          properties:
            strategy:
              type: string
              const: random
            limit:
              type: integer
              minimum: 1
              maximum: 100000
        split:
          type: object
          additionalProperties: false
          required:
            - val
            - by
          properties:
            val:
              type: number
              minimum: 0
              maximum: 1
            by:
              type: string
              const: trace
    RelabelRun:
      type: object
      additionalProperties: true
      required:
        - id
        - dataset_id
        - dataset_revision
        - model_ref
        - status
        - output_count
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
        dataset_id:
          type: string
          format: uuid
        dataset_revision:
          type: integer
        model_ref:
          $ref: '#/components/schemas/ModelRef'
        status:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
            - stale
        error:
          type:
            - string
            - 'null'
        output_count:
          type: integer
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - type
          properties:
            message:
              type: string
            type:
              type: string
      example:
        error:
          message: Task 'missing' not found in entity 'your-team'
          type: not_found
    DatasetQuery:
      type: object
      additionalProperties: false
      required:
        - source
        - after
        - before
      properties:
        source:
          $ref: '#/components/schemas/DatasetSource'
        after:
          type: string
          format: date-time
        before:
          type: string
          format: date-time
        filters:
          type: object
          additionalProperties: false
          properties:
            task_version:
              type: integer
              minimum: 1
              maximum: 2147483647
            resolved_provider:
              type: string
            resolved_model:
              type: string
            metadata:
              $ref: '#/components/schemas/JsonObject'
    ModelRef:
      type: string
      pattern: ^[a-z0-9][a-z0-9_-]{0,63}/\S+$
      example: openai/gpt-5.6-sol
    DatasetSource:
      oneOf:
        - type: string
          const: task
        - type: object
          additionalProperties: false
          required:
            - entity
            - project
          properties:
            entity:
              type: string
            project:
              type: string
    JsonObject:
      type: object
      additionalProperties: true
  responses:
    Error:
      description: Request failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    WandbApiKey:
      type: http
      scheme: bearer
      bearerFormat: W&B API key
      description: A personal or service-account W&B API key.

````