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

# Rename a folder

> Sets the folder's display label; its key and path do not change. An empty `display_name` clears the label. Names are unique among siblings, ignoring case.



## OpenAPI

````yaml /api-reference/endpoint/workspaces/openapi.json patch /workspaces/folder-name
openapi: 3.1.0
info:
  title: Workspaces API
  version: 1.1.0
  description: >-
    Spaces, tasks, task actions, comments, folders and the task-sync routes.
    Task-sync routes also accept an integration token (`oauth2`); every other
    route needs a user session or API key.
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Tasks
  - name: Files
  - name: Folders
  - name: Task Schedules
  - name: Distribution
paths:
  /workspaces/folder-name:
    patch:
      tags:
        - Folders
      summary: Rename a folder
      description: >-
        Sets the folder's display label; its key and path do not change. An
        empty `display_name` clears the label. Names are unique among siblings,
        ignoring case.
      operationId: renameFolder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - space_id
                - folder
                - display_name
              properties:
                space_id:
                  type: string
                folder:
                  type: string
                  description: Space-relative dot path, for example `Projects.Alpha`.
                display_name:
                  type: string
      responses:
        '200':
          description: What was stored
          content:
            application/json:
              schema:
                type: object
                properties:
                  space_id:
                    type: string
                  folder:
                    type: string
                  display_name:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          description: The space root or a Microsoft 365 managed folder cannot be renamed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: A sibling already uses the name.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: Stable machine code. Branch on this, not on `error`.
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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