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

# Create Folder

> Create a sub-folder under ``path`` and return the updated listing.



## OpenAPI

````yaml https://api.vellaro.io/openapi.json post /api/v1/admin/media/folder
openapi: 3.1.0
info:
  title: Vellaro API
  description: Vellaro 2026 — E-commerce API
  version: 0.1.0
servers:
  - url: https://api.vellaro.io
    description: Produzione
security: []
tags: []
paths:
  /api/v1/admin/media/folder:
    post:
      tags:
        - admin:media
      summary: Create Folder
      description: Create a sub-folder under ``path`` and return the updated listing.
      operationId: create_folder_api_v1_admin_media_folder_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/Body_create_folder_api_v1_admin_media_folder_post
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_MediaListing_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    Body_create_folder_api_v1_admin_media_folder_post:
      properties:
        path:
          type: string
          title: Path
          description: Parent path
          default: ''
        name:
          type: string
          title: Name
          description: New folder name
      type: object
      required:
        - name
      title: Body_create_folder_api_v1_admin_media_folder_post
    ApiResponse_MediaListing_:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/MediaListing'
            - type: 'null'
        meta:
          anyOf:
            - $ref: '#/components/schemas/PaginationMeta'
            - type: 'null'
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
      type: object
      title: ApiResponse[MediaListing]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MediaListing:
      properties:
        path:
          type: string
          title: Path
        folders:
          items:
            type: string
          type: array
          title: Folders
        files:
          items:
            $ref: '#/components/schemas/MediaFile'
          type: array
          title: Files
      type: object
      required:
        - path
        - folders
        - files
      title: MediaListing
      description: 'A directory listing: the current path, its sub-folders and its files.'
    PaginationMeta:
      properties:
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total:
          type: integer
          title: Total
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - page
        - page_size
        - total
        - total_pages
      title: PaginationMeta
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    MediaFile:
      properties:
        name:
          type: string
          title: Name
        url:
          type: string
          title: Url
        size:
          type: integer
          title: Size
        mime_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Mime Type
        modified_at:
          type: string
          title: Modified At
      type: object
      required:
        - name
        - url
        - size
        - modified_at
      title: MediaFile
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````