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

# Move Workspace File

> Relocate a workspace file or folder to another path.

A folder is a key prefix rather than an object, so moving one walks every
key beneath it — including the trailing-slash marker that keeps an empty
folder visible in the listing. Reserved prefixes are refused at both ends:
``tasks/`` belongs to a task's committed manifest, and ``.trash/`` is the
restore endpoint's alone.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/files/move
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/files/move:
    post:
      tags:
        - v1
        - protected
        - files
      summary: Move Workspace File
      description: >-
        Relocate a workspace file or folder to another path.


        A folder is a key prefix rather than an object, so moving one walks
        every

        key beneath it — including the trailing-slash marker that keeps an empty

        folder visible in the listing. Reserved prefixes are refused at both
        ends:

        ``tasks/`` belongs to a task's committed manifest, and ``.trash/`` is
        the

        restore endpoint's alone.
      operationId: move_workspace_file_v1_files_move_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MoveWorkspaceFileRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MovedFileResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    MoveWorkspaceFileRequest:
      additionalProperties: false
      properties:
        destination:
          minLength: 1
          title: Destination
          type: string
        source:
          minLength: 1
          title: Source
          type: string
      required:
        - source
        - destination
      title: MoveWorkspaceFileRequest
      type: object
    MovedFileResponse:
      properties:
        destination:
          title: Destination
          type: string
        moved:
          title: Moved
          type: integer
        source:
          title: Source
          type: string
      required:
        - source
        - destination
        - moved
      title: MovedFileResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````