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

# Move folder to new parent



## OpenAPI

````yaml /openapi-components.json patch /api/v1/folders/{id}/move
openapi: 3.0.0
info:
  title: StudyFetch API
  description: API documentation for StudyFetch
  version: '1.0'
  contact: {}
servers:
  - url: https://studyfetchapi.com
    description: Production API Server
security: []
tags: []
paths:
  /api/v1/folders/{id}/move:
    patch:
      tags:
        - Folders
      summary: Move folder to new parent
      operationId: move
      parameters:
        - name: id
          required: true
          in: path
          description: Folder ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MoveFolderDto'
      responses:
        '200':
          description: Folder moved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FolderMoveResponse'
      security:
        - x-api-key: []
components:
  schemas:
    MoveFolderDto:
      type: object
      properties:
        parentFolderId:
          type: string
          description: New parent folder ID or null for root level
          nullable: true
      required:
        - parentFolderId
    FolderMoveResponse:
      type: object
      properties:
        _id:
          type: string
          description: Folder ID
        name:
          type: string
          description: Folder name
        organizationId:
          type: string
          description: Organization ID
        parentFolderId:
          type: string
          description: Parent folder ID
          nullable: true
        description:
          type: string
          description: Folder description
        status:
          type: string
          description: Folder status
          enum:
            - active
            - deleted
        metadata:
          description: Folder metadata
          allOf:
            - $ref: '#/components/schemas/FolderMetadataDto'
        createdAt:
          format: date-time
          type: string
          description: Creation date
        updatedAt:
          format: date-time
          type: string
          description: Last update date
      required:
        - _id
        - name
        - organizationId
        - status
        - createdAt
        - updatedAt
    FolderMetadataDto:
      type: object
      properties:
        color:
          type: string
          description: Folder color
        icon:
          type: string
          description: Folder icon
        materialCount:
          type: number
          description: Number of materials in folder
        totalSize:
          type: number
          description: Total size of materials in folder
        lastActivity:
          format: date-time
          type: string
          description: Last activity date
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API Key for server-to-server authentication. Resolves to the owning
        organization.

````