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

# Update Folder

> Syteca ACB REST API endpoint to update a folder's name, description, parent, or permissions. Partial update — only the fields provided are changed.

Updates a folder. This is a **partial update** (PATCH semantics) — only fields included in the request body are changed; omitted fields are left unchanged.

<Note>
  For ACB deployments updated from a version prior to 1.2, switch to the `https://{hostname}/EkranACB` server in the Playground.
</Note>

### Permissions required

* **Editor** or **Owner** role on the folder for most field changes.
* **Owner** role required to modify the `permissions` field.

### Errors

See [Status codes](/docs/api/acb/api-reference#status-codes). Common errors:

* **403 Forbidden** — user lacks Editor/Owner role (or lacks Owner when modifying permissions).
* **404 Not Found** — folder doesn't exist.
* **409 Conflict** — renaming to a name that already exists in the parent.

## Related

<CardGroup cols={2}>
  <Card title="Get folder" icon="folder-open" href="/docs/api/acb/endpoints/get-folder">Read current folder state.</Card>
  <Card title="Add folder" icon="folder-plus" href="/docs/api/acb/endpoints/add-folder">Create a new folder.</Card>
  <Card title="Delete folder" icon="folder-minus" href="/docs/api/acb/endpoints/delete-folder">Remove a folder.</Card>
  <Card title="Data models" icon="braces" href="/docs/api/acb/data-models">FolderResponseDto schema.</Card>
</CardGroup>


## OpenAPI

````yaml PATCH /api/folders/{id}
openapi: 3.0.3
info:
  title: Application Credentials Broker API
  description: >-
    API for managing secrets and folders in the Application Credentials Broker
    system
  version: 1.4.0
  contact:
    name: API Support
    email: support@example.com
servers:
  - url: https://your-syteca-host/SytecaACB
    description: On-premises Syteca ACB service (v1.2 or later)
    variables:
      hostname:
        default: your-syteca-host.example.com
        description: Your Syteca Application Server hostname
  - url: https://your-syteca-host/EkranACB
    description: Legacy URL prefix for ACB deployments updated from pre-v1.2
    variables:
      hostname:
        default: your-syteca-host.example.com
        description: Your Syteca Application Server hostname
security:
  - AccessTokenAuth: []
paths:
  /api/folders/{id}:
    patch:
      tags:
        - Folders
      summary: Update folder
      description: Updates an existing folder with the provided data
      operationId: updateFolder
      parameters:
        - name: id
          in: path
          required: true
          description: The ID of the folder to update
          schema:
            type: integer
            format: int32
            minimum: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FolderUpdateRequestDto'
      responses:
        '200':
          description: Folder updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FolderResponseDto'
        '400':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Folder not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    FolderUpdateRequestDto:
      type: object
      properties:
        name:
          type: string
          maxLength: 512
          description: Name of the folder
        description:
          type: string
          maxLength: 2000
          description: Description of the folder
        parent_folder_id:
          type: integer
          format: int32
          minimum: 0
          description: ID of the parent folder
        parent_folder_name:
          type: string
          maxLength: 512
          description: Name of the parent folder
        permissions:
          $ref: '#/components/schemas/Permissions'
    FolderResponseDto:
      type: object
      properties:
        id:
          type: integer
          format: int32
          description: Unique identifier of the folder
        name:
          type: string
          description: Name of the folder
        description:
          type: string
          description: Description of the folder
        parent_folder_id:
          type: integer
          format: int32
          description: ID of the parent folder
        permissions:
          $ref: '#/components/schemas/Permissions'
      required:
        - id
        - name
    ErrorResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code
        message:
          type: string
          description: Error message
      required:
        - status
        - message
    Permissions:
      type: object
      properties:
        inherit_users_and_roles:
          type: boolean
          default: false
          description: Whether to inherit users and roles from parent
        inherit_features:
          type: boolean
          default: false
          description: Whether to inherit features from parent
        users:
          type: array
          items:
            $ref: '#/components/schemas/Permission'
          description: User permissions
        user_groups:
          type: array
          items:
            $ref: '#/components/schemas/Permission'
          description: User group permissions
    Permission:
      type: object
      properties:
        name:
          type: string
          description: User or group name
        access_type:
          $ref: '#/components/schemas/SecretPermissionType'
        features:
          type: array
          items:
            $ref: '#/components/schemas/AdditionalFeature'
          description: Additional features granted
      required:
        - name
        - access_type
    SecretPermissionType:
      type: string
      enum:
        - None
        - PAMUser
        - Owner
        - Viewer
      description: Secret permission type
    AdditionalFeature:
      type: string
      enum:
        - CopyPassword
        - ViewPassword
        - FileTransfer
      description: Additional features for permissions
  securitySchemes:
    AccessTokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Access token for authentication

````