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

# Update ledger account

> Update an existing ledger account.



## OpenAPI

````yaml put /v1/ledger-account/{id}
openapi: 3.0.0
info:
  title: ibana public api
  description: Public API for ibana
  version: 1.0.0
  contact:
    name: ibana
    url: https://ibana.io
    email: dev@ibana.io
servers:
  - url: http://localhost:3001
security: []
tags: []
paths:
  /v1/ledger-account/{id}:
    put:
      tags:
        - Ledger Account
      summary: Update ledger account
      description: Update an existing ledger account.
      operationId: LedgerAccountController_update_v1
      parameters:
        - name: id
          required: true
          in: path
          description: Ledger Account ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateLedgerAccountDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LedgerAccountResponseDto'
      security:
        - bearer: []
components:
  schemas:
    UpdateLedgerAccountDto:
      type: object
      properties:
        accountNumber:
          type: string
          description: Account number of the ledger account
        name:
          type: string
          description: Name of the ledger account
    LedgerAccountResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the entity.
        createdAt:
          format: date-time
          type: string
          description: The date and time the entity was created.
        updatedAt:
          format: date-time
          type: string
          description: The date and time the entity was last updated.
        accountNumber:
          type: string
          description: Account number of the ledger account
        name:
          type: string
          description: Name of the ledger account
      required:
        - accountNumber
        - name
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````