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

# Add to Slice

> [!NOTE]
>
> **[Click for Python SDK](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.Slice.append)**
>
> ```
> Slice.append(reference_ids: Optional[List[str]] = None) -> dict
> ```

This endpoint appends existing `DatasetItems` from a `Dataset` to a `Slice`. Provide a list of `DatasetItem` reference IDs, which are set at upload time. The list cannot exceed 10,000 items per request.


## OpenAPI

````yaml openapi/nucleus.json POST /slice/{slice_id}/append
openapi: 3.1.0
info:
  title: Nucleus API
  version: '1.1'
servers:
  - url: https://api.scale.com/v1/nucleus
security:
  - sec0: []
paths:
  /slice/{slice_id}/append:
    post:
      summary: Add to Slice
      operationId: add-to-slice
      parameters:
        - name: slice_id
          in: path
          description: The Scale-generated ID of the Slice.
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - reference_ids
              properties:
                reference_ids:
                  type: array
                  description: >-
                    Array of user-specified reference IDs pertaining to the
                    items to include in the Slice.
                  items:
                    type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    slice_id: slc_bx86ea222a6g057x4380
                    new_items:
                      - di_bx79jc1z4x5wvjenra10
                      - di_bx79ha5z4x5wvjenr9y0
              schema:
                type: object
                properties:
                  slice_id:
                    type: string
                    example: slc_bx86ea222a6g057x4380
                  new_items:
                    type: array
                    items:
                      type: string
                      example: di_bx79jc1z4x5wvjenra10
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: http
      scheme: basic

````