Gestiono
Referencia de APIAccounting / Chart Of Accounts

Update Chart Of Accounts

PATCH /v1/chart-of-accounts • validated by `patchChartAccount`

← Back to full API reference
PATCH/v1/chart-of-accountsAuthentication required
  • Requires organization permissions for this resource.
  • Validated by Zod schema: patchChartAccount.

Request details

Path params

No path parameters for this endpoint.

Query params

No explicit query schema was captured for this endpoint.

Body fields

  • id (required)

    Type: number

  • name

    Type: string

  • code

    Type: string

  • type

    z.enum without literal array values

  • category

    Type: enum

    Example: REAL

  • parentAccountId

    Type: number

  • description

    Type: string

  • isActive

    Type: boolean

  • dataSources

    Type: array

    Example:

  • dataSources[] (required)

    Type: object

  • dataSources[].id

    Type: string

  • dataSources[].type (required)

    Type: enum

    Example: INVOICES

  • dataSources[].operation (required)

    Type: enum

    Example: ADD

  • dataSources[].config

    Type: object

  • dataSources[].config.invoice

    Type: object

  • dataSources[].config.invoice.sourceField (required)

    Type: enum

    Example: amount

  • dataSources[].config.invoice.isSell (required)

    Type: boolean

  • dataSources[].config.resources

    Type: object

  • dataSources[].config.resources.ids

    Type: array

    Example:

  • dataSources[].config.resources.ids[] (required)

    Type: number

  • dataSources[].config.resources.types

    Type: array

    Example:

  • dataSources[].config.resources.types[] (required)

    Enum-like validator generated by zodFromObj

  • dataSources[].config.chartAccounts

    Type: object

  • dataSources[].config.chartAccounts.ids

    Type: array

    Example:

  • dataSources[].config.chartAccounts.ids[] (required)

    Type: number

  • dataSources[].config.commissions

    Type: object

  • dataSources[].config.commissions.isSell

    Type: boolean

  • dataSources[].config.manual

    Type: object

  • dataSources[].config.manual.amount

    Type: number

Default payloads

Path params

json
{}

Query

json
{}

Body

json
{
  "id": 1
}

Sample response

json
{}

Test this endpoint now

Use your own credentials and execute a live request directly from this page.

1. Configure authentication for testing

You can test endpoints with signed API keys, a raw Authorization token, or browser cookies. Select one mode and fill in the required fields.

2. Select endpoint

PATCH/v1/chart-of-accountsAuthentication required

Group: Accounting / Chart Of Accounts

PATCH /v1/chart-of-accounts • validated by `patchChartAccount`

  • Requires organization permissions for this resource.
  • Validated by Zod schema: patchChartAccount.

Body fields

  • idrequired
    Type: number
  • name
    Type: string
  • code
    Type: string
  • type
    z.enum without literal array values
  • category
    Type: enum
    Ejemplo: REAL
  • parentAccountId
    Type: number
  • description
    Type: string
  • isActive
    Type: boolean
  • dataSources
    Type: array
    Ejemplo:
  • dataSources[]required
    Type: object
  • dataSources[].id
    Type: string
  • dataSources[].typerequired
    Type: enum
    Ejemplo: INVOICES
  • dataSources[].operationrequired
    Type: enum
    Ejemplo: ADD
  • dataSources[].config
    Type: object
  • dataSources[].config.invoice
    Type: object
  • dataSources[].config.invoice.sourceFieldrequired
    Type: enum
    Ejemplo: amount
  • dataSources[].config.invoice.isSellrequired
    Type: boolean
  • dataSources[].config.resources
    Type: object
  • dataSources[].config.resources.ids
    Type: array
    Ejemplo:
  • dataSources[].config.resources.ids[]required
    Type: number
  • dataSources[].config.resources.types
    Type: array
    Ejemplo:
  • dataSources[].config.resources.types[]required
    Enum-like validator generated by zodFromObj
  • dataSources[].config.chartAccounts
    Type: object
  • dataSources[].config.chartAccounts.ids
    Type: array
    Ejemplo:
  • dataSources[].config.chartAccounts.ids[]required
    Type: number
  • dataSources[].config.commissions
    Type: object
  • dataSources[].config.commissions.isSell
    Type: boolean
  • dataSources[].config.manual
    Type: object
  • dataSources[].config.manual.amount
    Type: number

3. Prepare request payload

4. Server response

Run a request to inspect the real-time response for your environment.