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

# Update Gl Accounts



## OpenAPI

````yaml https://app.usequanta.com/openapi/quanta-services-api/openapi.json post /api/alpha/general_ledger/accounts/update
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://app.usequanta.com
    description: Production
security:
  - HTTPBearer: []
paths:
  /api/alpha/general_ledger/accounts/update:
    post:
      tags:
        - gl_accounts
        - quanta-services-api
      summary: Update Gl Accounts
      operationId: update_gl_accounts
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAccountsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateAccountsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    UpdateAccountsRequest:
      properties:
        accounts:
          items:
            $ref: '#/components/schemas/UpdateAccountRequest'
          type: array
          minItems: 1
          title: Accounts
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        reason_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason Type
      additionalProperties: false
      type: object
      required:
        - accounts
      title: UpdateAccountsRequest
    UpdateAccountsResponse:
      properties:
        success:
          type: boolean
          title: Success
        message:
          type: string
          title: Message
      type: object
      required:
        - success
        - message
      title: UpdateAccountsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UpdateAccountRequest:
      properties:
        account_qid:
          type: string
          title: Account Qid
        new_number:
          anyOf:
            - type: string
            - type: boolean
              const: false
            - type: 'null'
          title: New Number
          description: >-
            Omit or set to null to leave unchanged. Set to false to clear the
            number.
        new_name:
          anyOf:
            - type: string
              minLength: 4
            - type: 'null'
          title: New Name
        new_lookup_id:
          anyOf:
            - type: string
              minLength: 4
            - type: 'null'
          title: New Lookup Id
        new_account_type:
          anyOf:
            - $ref: '#/components/schemas/AccountType'
            - type: 'null'
        new_parent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: New Parent Id
          description: >-
            Omit or set to null to leave the parent unchanged. Set to
            'REMOVE_PARENT' to remove the parent relationship. Set to a GL
            account qid to assign a new parent.
        new_booking_disabled_on:
          anyOf:
            - type: string
              format: date
            - type: boolean
              const: false
            - type: 'null'
          title: New Booking Disabled On
          description: >-
            Omit or set to null to leave unchanged. Set to a date to disable new
            bookings on and after that date. Set to false to re-enable booking.
        add_lookup_id_overrides:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Add Lookup Id Overrides
          description: >-
            Lookup ID overrides to add to this account. Each name must not
            already exist as a gl_account lookup_id or as an existing override
            for any account in the org.
        remove_lookup_id_overrides:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Remove Lookup Id Overrides
          description: >-
            Lookup ID overrides to remove from this account. Deletes overrides
            matching the given names for this account and org.
      type: object
      required:
        - account_qid
      title: UpdateAccountRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    AccountType:
      type: string
      enum:
        - ACCOUNTS_RECEIVABLE
        - BANK
        - FIXED_ASSET
        - OTHER_ASSET
        - OTHER_CURRENT_ASSET
        - ACCOUNTS_PAYABLE
        - CREDIT_CARD
        - OTHER_CURRENT_LIABILITY
        - LONG_TERM_LIABILITY
        - EQUITY
        - INCOME
        - OTHER_INCOME
        - COST_OF_GOODS_SOLD
        - EXPENSE
        - OTHER_EXPENSE
      title: AccountType
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Quanta Services API scoped bearer token. Supported only on Services API
        routes.

````

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