> ## 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.

# Move dataset entries to a split

> Moves every entry matching `filters` (the listing's filters, including metadata) and `row_ids` to `split`. `fraction` keeps that share of the matching groups, ranked by a digest of the group id, so a group is never divided and a later call can take its share from what remains. Use `val` to hold a population out of training, so evaluations measure the model on users it never saw. A change that would place one group in more than one split returns 409 `group_split_conflict`.



## OpenAPI

````yaml openapi/model-distillation/management.openapi.yaml PATCH /projects/{alias}/datasets/{datasetId}/entries
openapi: 3.1.0
info:
  title: CoreWeave Model Distillation Management API
  version: 1.0.0
  description: |
    Manage providers, projects, routing versions, datasets, relabeling,
    fine-tunes, evaluations, and analytics. This is the same API used by
    Model Distillation.
servers:
  - url: https://forge.coreweave.com/api/distillation/v1
    description: Production
security:
  - WandbCredential: []
tags:
  - name: Providers
    description: OpenAI-compatible endpoints, credentials, model catalogs, and pricing.
  - name: Projects
    description: Stable project identity and project-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: Analytics
    description: Project traffic, token, error, and estimated-cost read models.
  - name: UI preferences
    description: Per-project display preferences used by the UI.
paths:
  /projects/{alias}/datasets/{datasetId}/entries:
    parameters:
      - $ref: '#/components/parameters/WandbEntity'
      - $ref: '#/components/parameters/ProjectAlias'
      - $ref: '#/components/parameters/DatasetId'
    patch:
      tags:
        - Datasets
      summary: Move dataset entries to a split
      description: >-
        Moves every entry matching `filters` (the listing's filters, including
        metadata) and `row_ids` to `split`. `fraction` keeps that share of the
        matching groups, ranked by a digest of the group id, so a group is never
        divided and a later call can take its share from what remains. Use `val`
        to hold a population out of training, so evaluations measure the model
        on users it never saw. A change that would place one group in more than
        one split returns 409 `group_split_conflict`.
      operationId: updateDatasetEntrySplits
      parameters:
        - name: dry_run
          in: query
          description: Validate and report the change, then roll it back.
          required: false
          schema:
            type: boolean
            default: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                split:
                  type: string
                  enum:
                    - train
                    - val
                filters:
                  default: []
                  description: >-
                    Select entries matching every filter, as in the entry
                    listing.
                  maxItems: 10
                  type: array
                  items:
                    oneOf:
                      - type: object
                        properties:
                          field:
                            type: string
                            const: entry_id
                          operator:
                            type: string
                            enum:
                              - equals
                              - not_equals
                          value:
                            type: string
                            pattern: ^[A-Za-z0-9_-]{22}$
                        required:
                          - field
                          - operator
                          - value
                        additionalProperties: false
                      - type: object
                        properties:
                          field:
                            type: string
                            enum:
                              - input
                              - original_output
                          operator:
                            type: string
                            enum:
                              - contains
                              - not_contains
                          value:
                            type: string
                            minLength: 1
                            maxLength: 500
                        required:
                          - field
                          - operator
                          - value
                        additionalProperties: false
                      - type: object
                        properties:
                          field:
                            type: string
                            const: relabel_status
                          operator:
                            type: string
                            enum:
                              - equals
                              - not_equals
                          value:
                            type: string
                            enum:
                              - pending
                              - processing
                              - relabeled
                              - unchanged
                              - errored
                        required:
                          - field
                          - operator
                          - value
                        additionalProperties: false
                      - type: object
                        properties:
                          field:
                            type: string
                            const: split
                          operator:
                            type: string
                            enum:
                              - equals
                              - not_equals
                          value:
                            type: string
                            enum:
                              - train
                              - val
                        required:
                          - field
                          - operator
                          - value
                        additionalProperties: false
                      - type: object
                        properties:
                          field:
                            type: string
                            const: metadata
                          key:
                            type: string
                            minLength: 1
                            maxLength: 256
                          operator:
                            type: string
                            enum:
                              - equals
                              - not_equals
                          value:
                            anyOf:
                              - type: string
                                maxLength: 500
                              - type: number
                              - type: boolean
                        required:
                          - field
                          - key
                          - operator
                          - value
                        additionalProperties: false
                      - type: object
                        properties:
                          field:
                            type: string
                            const: eval_applied
                          operator:
                            type: string
                            enum:
                              - equals
                              - not_equals
                          value:
                            type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        required:
                          - field
                          - operator
                          - value
                        additionalProperties: false
                row_ids:
                  description: Select only these row ids.
                  minItems: 1
                  maxItems: 5000
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 512
                fraction:
                  description: >-
                    Move only this share of the selected groups, ranked by a
                    digest of the group id so groups stay whole.
                  type: number
                  exclusiveMinimum: 0
                  exclusiveMaximum: 1
              required:
                - split
              additionalProperties: false
      responses:
        '200':
          description: Entries were moved, or would be for a dry run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatasetEntrySplitResult'
        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 authenticated user's
        default entity.
      schema:
        type: string
    ProjectAlias:
      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:
    DatasetEntrySplitResult:
      type: object
      required:
        - dry_run
        - matched
        - groups
        - updated
        - revision
        - entry_counts
        - group_conflicts
      properties:
        dry_run:
          type: boolean
        matched:
          type: integer
          description: Entries selected by the filters, row ids, and fraction.
        groups:
          type: integer
          description: Groups the selected entries belong to.
        updated:
          type: integer
          description: Selected entries that were in a different split.
        revision:
          type: integer
          description: >-
            The dataset revision after the change; unchanged by a dry run or a
            no-op.
        entry_counts:
          $ref: '#/components/schemas/DatasetEntryCounts'
        group_conflicts:
          type: array
          items:
            type: string
          description: >-
            Groups spanning more than one split. A real change with conflicts is
            rejected.
    DatasetEntryCounts:
      type: object
      required:
        - total
        - train
        - val
      properties:
        total:
          type: integer
        train:
          type: integer
        val:
          type: integer
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - type
          properties:
            message:
              type: string
            type:
              type: string
      example:
        error:
          message: Project 'missing' not found in entity 'your-team'
          type: not_found
  responses:
    Error:
      description: Request failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    WandbCredential:
      type: http
      scheme: bearer
      bearerFormat: wandb API key or JWT
      description: >-
        A wandb API key or wandb JWT. Browser sessions are exchanged by the
        Model Distillation web app backend; job capabilities are internal only.

````