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

# Create Folder

> Creates a new folder in the media storage



## OpenAPI

````yaml /api-reference/medias/openapi.json post /medias/folder
openapi: 3.0.0
info:
  title: Media Storage API
  description: Documentation for Files API
  version: '1.0'
  contact: {}
servers:
  - url: https://services.leadconnectorhq.com
security: []
tags:
  - name: Medias
    description: Documentation for Files API
paths:
  /medias/folder:
    post:
      summary: Create Folder
      description: Creates a new folder in the media storage
      operationId: create-media-folder
      parameters:
        - name: Authorization
          in: header
          description: Access Token
          required: false
          schema:
            type: string
            example: Bearer 9c48df2694a849b6089f9d0d3513efe
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateFolderParams'
      responses:
        '200':
          description: Returns the newly created folder object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FolderDTO'
      security:
        - Location-Access: []
components:
  schemas:
    CreateFolderParams:
      type: object
      properties:
        altId:
          type: string
          description: Location Id
          example: sx6wyHhbFdRXh302LLNR
        altType:
          type: string
          description: Type of entity (location only)
          enum:
            - location
          example: location
        name:
          type: string
          description: Name of the folder to be created
          example: New Folder
        parentId:
          type: string
          description: ID of the parent folder (optional)
          example: 64af50c42d567a3b4f5989e0
      required:
        - altId
        - altType
        - name
    FolderDTO:
      type: object
      properties:
        altId:
          type: string
          description: Location identifier that owns this folder
          example: sx6wyHhbFdRXh302LLNR
        altType:
          type: string
          description: Type of entity that owns the folder
          enum:
            - location
          example: location
        name:
          type: string
          description: Name of the folder
          example: New Folder
        parentId:
          type: string
          description: ID of the parent folder (null for root folders)
          example: 64af50c42d567a3b4f5989e0
        type:
          type: string
          description: Type of the object (always 'folder' for folders)
          example: folder
        deleted:
          type: boolean
          description: Whether the folder has been deleted
          example: false
        pendingUpload:
          type: boolean
          description: Whether there are pending uploads to this folder
          example: false
        category:
          type: string
          description: Primary category of content stored in the folder
          example: image
        subCategory:
          type: string
          description: Sub-category of content stored in the folder
          example: logo
        isPrivate:
          type: boolean
          description: Whether the folder is private and not publicly accessible
          example: false
        relocatedFolder:
          type: boolean
          description: Whether the folder has been moved from its original location
          example: false
        migrationCompleted:
          type: boolean
          description: >-
            Whether the data migration process has been completed for this
            folder
          example: true
        appFolder:
          type: boolean
          description: Whether this is a system-generated application folder
          example: false
        isEssential:
          type: boolean
          description: Whether the folder is essential and should not be deleted
          example: false
        status:
          type: string
          description: Current status of the folder
        lastUpdatedBy:
          type: string
          description: ID of the user who last updated the folder
          example: user-uuid-123
      required:
        - altId
        - altType
        - name
        - type

````