---
title: "Updates an existing balance definition and related TemplateBalanceConfigurations"
method: PATCH
path: "/api/balances/definitions/update/withtemplates"
tags: ["Balances"]
---

# Updates an existing balance definition and related TemplateBalanceConfigurations

`PATCH /api/balances/definitions/update/withtemplates`

## Request body

- IntectBalanceDefinition
  - `Id` integer
  - `CompanyId` integer, nullable
  - `CountryId` integer, nullable
  - `Name` string
  - `SpecialIdentifier` string
  - `IsConfigurable` boolean
  - `AmountEnabled` boolean
  - `TaxEnabled` boolean
  - `SecondaryAmountEnabled` boolean
  - `TertiaryAmountEnabled` boolean
  - `DaysEnabled` boolean
  - `SecondaryDaysEnabled` boolean
  - `HoursEnabled` boolean
  - `BaseAmountEnabled` boolean
  - `HasPeriods` boolean
  - `SuspendedDaysEnabled` boolean
  - `IsActive` boolean
  - `BaseCalculationMethodId` integer, nullable
  - `BalanceEarningIntervalId` integer, nullable
  - `UnitsEarnedPerInterval` number, double, nullable
  - `EarningFixedAmount` number, double, nullable
  - `EarningPercentage` number, double, nullable
  - `TerminationMethodId` integer, nullable
  - `SpendingMethodId` integer, nullable
  - `BalancePeriods` IntectBalancePeriod[]
    - `Id` integer
    - `BalanceId` integer
    - `EarningStartDate` string, date-time
    - `EarningEndDate` string, date-time
    - `SpendingStartDate` string, date-time
    - `SpendingEndDate` string, date-time
    - `SpecialIdentifier` string
    - `BalanceDefinition` IntectBalanceDefinition — recursive
    - `Name` string

## Response `200`

OK

- IntectBalanceDefinition
  - `Id` integer
  - `CompanyId` integer, nullable
  - `CountryId` integer, nullable
  - `Name` string
  - `SpecialIdentifier` string
  - `IsConfigurable` boolean
  - `AmountEnabled` boolean
  - `TaxEnabled` boolean
  - `SecondaryAmountEnabled` boolean
  - `TertiaryAmountEnabled` boolean
  - `DaysEnabled` boolean
  - `SecondaryDaysEnabled` boolean
  - `HoursEnabled` boolean
  - `BaseAmountEnabled` boolean
  - `HasPeriods` boolean
  - `SuspendedDaysEnabled` boolean
  - `IsActive` boolean
  - `BaseCalculationMethodId` integer, nullable
  - `BalanceEarningIntervalId` integer, nullable
  - `UnitsEarnedPerInterval` number, double, nullable
  - `EarningFixedAmount` number, double, nullable
  - `EarningPercentage` number, double, nullable
  - `TerminationMethodId` integer, nullable
  - `SpendingMethodId` integer, nullable
  - `BalancePeriods` IntectBalancePeriod[]
    - `Id` integer
    - `BalanceId` integer
    - `EarningStartDate` string, date-time
    - `EarningEndDate` string, date-time
    - `SpendingStartDate` string, date-time
    - `SpendingEndDate` string, date-time
    - `SpecialIdentifier` string
    - `BalanceDefinition` IntectBalanceDefinition — recursive
    - `Name` string

---

[API](https://skmtc.dev/intect/apis/intect-rest-api.md) · [All operations](https://skmtc.dev/intect/apis/intect-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/intect/intect-rest-api/revisions/e256dcb495d4/schema)
