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

# Copy Items

> Copy items into a directory as a background job; poll GET /jobs/{job_id}.



## OpenAPI

````yaml /api-reference/openapi.json post /fs-items/copy
openapi: 3.1.0
info:
  title: Aspect API
  description: Manage and search media in Aspect.
  version: 1.0.0
servers:
  - url: https://api.aspect.inc
security:
  - ApiKeyAuth: []
tags:
  - name: Users
  - name: API Keys
  - name: Workspaces
  - name: Projects
  - name: Directories
  - name: Assets
  - name: Attachments
  - name: Filesystem Items
  - name: Jobs
  - name: Collections
  - name: Comments
  - name: Search
  - name: Transcription
  - name: Metadata
  - name: Shares
  - name: Share Templates
  - name: Watermarks
paths:
  /fs-items/copy:
    post:
      tags:
        - Filesystem Items
      summary: Copy Items
      description: >-
        Copy items into a directory as a background job; poll GET
        /jobs/{job_id}.
      operationId: copy_items
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FsItemsCopyRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FsItemsCopyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    FsItemsCopyRequest:
      properties:
        asset_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Asset Ids
          description: List of asset IDs to copy
        directory_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Directory Ids
          description: >-
            List of directory IDs to copy (recursively, including all nested
            items)
        symlink_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Symlink Ids
          description: List of symlink IDs to copy
        destination_directory_id:
          type: string
          format: uuid
          title: Destination Directory Id
          description: ID of the destination parent directory
        include_comments:
          type: boolean
          title: Include Comments
          description: >-
            Whether comment threads (comments, reactions, mentions, and their
            attachments) carry over to the copied assets
          default: true
        include_metadata:
          type: boolean
          title: Include Metadata
          description: Whether metadata values carry over to the copied assets
          default: true
        copy_as_proxy:
          type: boolean
          title: Copy As Proxy
          description: >-
            Copy videos as their stream proxy: the proxy becomes the copied
            asset's original. Other asset types copy their original.
          default: false
      type: object
      required:
        - destination_directory_id
      title: FsItemsCopyRequest
      description: >-
        API request schema for copying filesystem items into a destination
        directory.


        Copying is asynchronous: the endpoint enqueues a copy job and returns
        its

        job id, which can be polled via GET /jobs/{job_id}.
    FsItemsCopyResponse:
      properties:
        job_id:
          type: string
          format: uuid
          title: Job Id
          description: ID of the enqueued copy job; poll GET /jobs/{job_id}
        items_total:
          type: integer
          title: Items Total
          description: >-
            Total number of items (directories, assets, symlinks) the job will
            copy
      type: object
      required:
        - job_id
        - items_total
      title: FsItemsCopyResponse
      description: API response schema for an enqueued copy job
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.