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

# Update Folder

> Renames a folder. Requires authentication.

## Overview

Renames an existing folder.

## Path Parameters

| Parameter | Type      | Required | Description |
| :-------- | :-------- | :------- | :---------- |
| `id`      | `integer` | Yes      | Folder ID.  |

## Request Body

| Field  | Type     | Required | Description      | Example         |
| :----- | :------- | :------- | :--------------- | :-------------- |
| `name` | `string` | Yes      | New folder name. | `Marketing QRs` |

## Example Request

```json theme={null}
{
  "name": "Marketing QRs"
}
```

## Example Response

### ✅ **200 OK**

```json theme={null}
{
  "id": 8,
  "name": "Marketing QRs",
  "created_by": 422,
  "folder_type": "qr",
  "qr_codes_count": 0,
  "created": "2026-03-16T17:57:16.662333+05:30",
  "updated": "2026-03-16T17:57:16.662362+05:30"
}
```

## Use Cases

* **Renaming**: Update folder names to reflect new campaigns
* **Cleanup**: Standardize naming conventions across folders


## OpenAPI

````yaml PUT /folder/{id}/
openapi: 3.1.0
info:
  title: Scanova Management API
  description: Management endpoints for tags, trash, and other administrative functions
  version: 1.0.0
servers:
  - url: https://management.scanova.io
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /folder/{id}/:
    put:
      tags:
        - Management
      summary: Update Folder
      description: Renames a folder. Requires authentication.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          description: Folder ID
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Folder name
                  example: Marketing QRs
      responses:
        '200':
          description: Folder updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Folder'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationErrorResponse'
        '404':
          description: Folder not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: Not found.
      security:
        - apiKeyAuth: []
components:
  schemas:
    Folder:
      type: object
      properties:
        id:
          type: integer
          description: Folder ID
          example: 7
        name:
          type: string
          description: Folder name
          example: Marketing QRs
        created_by:
          type: integer
          description: User ID who created the folder
          example: 422
        folder_type:
          type: string
          description: Folder type
          example: qr
        qr_codes_count:
          type: integer
          description: Number of QR codes in the folder
          example: 0
        created:
          type: string
          format: date-time
          description: Creation timestamp
          example: '2026-03-16T17:57:16.662333+05:30'
        updated:
          type: string
          format: date-time
          description: Last update timestamp
          example: '2026-03-16T17:57:16.662362+05:30'
    AuthenticationErrorResponse:
      type: object
      properties:
        detail:
          type: string
          description: Authentication error message
          example: Invalid token.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API key authentication. Enter your API key directly in the Authorization
        header.

````