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

# Update folder

> Renames and/or moves a folder. A move takes the whole subtree along and requires access to the folder, every subfolder and the new parent. Requires an admin key owner.



## OpenAPI

````yaml /openapi-2025-01-29.alpha.json patch /folders/{id}
openapi: 3.0.0
info:
  title: Tomorro API
  description: >
    The Tomorro Public API enables you to programmatically manage contracts,
    members, and counterparties. Build powerful integrations that automate your
    contract management workflows.


    ## API Version: 2025-01-29.alpha


    This documentation is for API version `2025-01-29.alpha`.


    ### Using this version

    ```

    curl -X GET https://api.tomorro.com/members \
      -H "x-api-key: YOUR_API_KEY" \
      -H "tomorro-version: 2025-01-29.alpha"
    ```
  version: 2025-01-29.alpha
  contact: {}
servers:
  - url: https://api.tomorro.com/v2
    description: Production
  - url: https://api.demo.tomorro.com/v2
    description: Demo
  - url: http://localhost:3015
    description: Local Development
security: []
tags: []
paths:
  /folders/{id}:
    patch:
      tags:
        - Folders
      summary: Update folder
      description: >-
        Renames and/or moves a folder. A move takes the whole subtree along and
        requires access to the folder, every subfolder and the new parent.
        Requires an admin key owner.
      operationId: FoldersController_updateFolder
      parameters:
        - name: id
          required: true
          in: path
          description: The unique identifier (UUID) of the folder
          schema:
            example: 3f2a1c9e-8b7d-4e6f-9a0b-1c2d3e4f5a6b
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FolderUpdateDto'
      responses:
        '200':
          description: Folder updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FolderResponseDto'
        '400':
          description: Invalid request body
        '401':
          description: Unauthorized - Invalid or missing API key
        '403':
          description: Forbidden - Insufficient permissions
        '404':
          description: Folder not found or not accessible to the API key owner
        '409':
          description: A sibling folder already has this name (`FolderAlreadyExists`)
        '429':
          description: Too Many Requests - Rate limit exceeded
      security:
        - X-API-KEY: []
components:
  schemas:
    FolderUpdateDto:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
          description: >-
            Folder name, unique among its siblings. Leading and trailing spaces
            are trimmed and `/` is replaced by `|`.
          example: NDA
        parentFolderId:
          type: string
          format: uuid
          description: >-
            New parent folder, which moves the folder with its whole subtree.
            Send `null` to move it to the root.
          example: 7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f
          nullable: true
      additionalProperties: false
    FolderResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the folder.
          example: 3f2a1c9e-8b7d-4e6f-9a0b-1c2d3e4f5a6b
        name:
          type: string
          description: Name of the folder, unique among its siblings.
          example: NDA
        parentFolderId:
          type: string
          description: >-
            Identifier of the parent folder, `null` for a root folder. Always
            the real parent, even when the authenticated member cannot access it
            (a `GET` on that id then returns 404).
          nullable: true
          example: 7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f
        ownerId:
          type: string
          description: Identifier of the member who owns the folder.
          example: 550e8400-e29b-41d4-a716-446655440000
        createdAt:
          format: date-time
          type: string
          description: Creation date (ISO 8601).
          example: '2026-10-01T09:00:00.000Z'
        updatedAt:
          format: date-time
          type: string
          description: Last modification date (ISO 8601).
          example: '2026-10-15T14:30:00.000Z'
      required:
        - id
        - name
        - parentFolderId
        - ownerId
        - createdAt
        - updatedAt
  securitySchemes:
    X-API-KEY:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Get your key at
        https://app.tomorro.com/settings/integrations?integration=api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.