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

# Create a folder

> Create a folder under ``parent_id`` (``null`` = a root folder). A blank name
is a 400, an unknown ``parent_id`` a 400, and a sibling already holding the name
a 409.



## OpenAPI

````yaml /openapi.json post /api/tool-meta/folders
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:
    post:
      tags:
        - tool_meta
      summary: Create a folder
      description: >-
        Create a folder under ``parent_id`` (``null`` = a root folder). A blank
        name

        is a 400, an unknown ``parent_id`` a 400, and a sibling already holding
        the name

        a 409.
      operationId: post_api_tool_meta_folders
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FolderCreate'
        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.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Conflict with the current resource state.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    FolderCreate:
      description: |-
        A folder-creation request — a ``name`` and an optional ``parent_id``
        (``null`` = a root folder).
      properties:
        name:
          title: Name
          type: string
        parent_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Parent Id
      required:
        - name
      title: FolderCreate
      type: object
    Error:
      properties:
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````