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

# Update Folder

> Update a bookmark folder



## OpenAPI

````yaml PATCH /bookmark/folder/{folderId}
openapi: 3.0.3
info:
  title: Bookmark API
  version: 1.0.0
  description: API for managing bookmarks and bookmark folders.
servers:
  - url: https://our-secret-api-url.com
security: []
paths:
  /bookmark/folder/{folderId}:
    patch:
      description: Update a bookmark folder
      parameters:
        - $ref: '#/components/parameters/X-API-KEY'
        - name: folderId
          in: path
          required: true
          schema:
            type: integer
          description: ID of the folder to update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: New name for the folder
              required:
                - name
      responses:
        '200':
          description: Folder updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  name:
                    type: string
                  createdAt:
                    type: string
                    format: date-time
                  userId:
                    type: integer
                  bookmarkCount:
                    type: integer
        '500':
          description: Failed to update folder
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      security:
        - bearerAuth: []
components:
  parameters:
    X-API-KEY:
      name: X-API-KEY
      description: API key required for authentication
      in: header
      required: true
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````