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

# Move a folder

> Re-parent a folder (``null`` = move to root). An unknown folder or parent is a
404, a move that would form a cycle a 400, and a sibling collision at the
destination a 409.



## OpenAPI

````yaml /openapi.json post /api/tool-meta/folders/{folder_id}/move
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 0.3.0
servers: []
security: []
paths:
  /api/tool-meta/folders/{folder_id}/move:
    post:
      tags:
        - tool_meta
      summary: Move a folder
      description: >-
        Re-parent a folder (``null`` = move to root). An unknown folder or
        parent is a

        404, a move that would form a cycle a 400, and a sibling collision at
        the

        destination a 409.
      operationId: post_api_tool_meta_folders_folder_id_move
      parameters:
        - in: path
          name: folder_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FolderMove'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data: {}
                required:
                  - data
                type: object
          description: Success.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Malformed request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Conflict with the current resource state.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    FolderMove:
      description: A folder-move request — the new ``parent_id`` (``null`` = move to root).
      properties:
        parent_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Parent Id
      title: FolderMove
      type: object
    Error:
      properties:
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````