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

# Move To Trash



## OpenAPI

````yaml /api-reference/openapi.json post /fs-items/move-to-trash
openapi: 3.1.0
info:
  title: Aspect Platform API
  description: A FastAPI application for Aspect Platform functionality
  version: 0.0.0
servers:
  - url: https://api.aspect.inc
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /fs-items/move-to-trash:
    post:
      tags:
        - Filesystem Items
      summary: Move To Trash
      operationId: post_Filesystem Items_fs_items_move_to_trash
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FsItemsMoveToTrashRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FsItemsMoveResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    FsItemsMoveToTrashRequest:
      properties:
        project_id:
          type: string
          format: uuid
          title: Project Id
          description: Project ID the items belong to
        asset_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Asset Ids
          description: List of asset IDs to move to trash
        directory_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Directory Ids
          description: List of directory IDs to move to trash
        symlink_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Symlink Ids
          description: List of symlink IDs to move to trash
      type: object
      required:
        - project_id
      title: FsItemsMoveToTrashRequest
      description: >-
        API request schema for moving filesystem items to the project trash.


        The backend resolves the trash_directory_id from the project, so the
        client

        only needs to supply the project_id and the item IDs to trash. Conflict

        resolution is automatic (parenthesized numbering) and never requires
        user

        interaction.
    FsItemsMoveResponse:
      properties:
        moved_asset_count:
          type: integer
          title: Moved Asset Count
          description: Number of assets successfully moved
        moved_directory_count:
          type: integer
          title: Moved Directory Count
          description: Number of directories successfully moved
        moved_symlink_count:
          type: integer
          title: Moved Symlink Count
          description: Number of symlinks successfully moved
          default: 0
        revision_results:
          items:
            $ref: '#/components/schemas/MoveItemRevisionResult'
          type: array
          title: Revision Results
          description: Per-item revision info for each moved item
      type: object
      required:
        - moved_asset_count
        - moved_directory_count
      title: FsItemsMoveResponse
      description: API response schema for moving filesystem items
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MoveItemRevisionResult:
      properties:
        item_id:
          type: string
          format: uuid
          title: Item Id
          description: ID of the moved item
        revision_id:
          type: string
          format: uuid
          title: Revision Id
          description: ID of the MOVED revision created
        is_latest:
          type: boolean
          title: Is Latest
          description: Whether the revision is the overall latest
      type: object
      required:
        - item_id
        - revision_id
        - is_latest
      title: MoveItemRevisionResult
      description: Per-item revision info from a move operation
    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:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT in Authorization header. 'Bearer ' prefix optional.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

````