# Upsert Ledger Attributes Upsert Ledger Attributes Endpoint: PATCH /rest/2.0/FINANCIAL_CRITERIA_ATTR Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.DebitAttributeValue` (string) Debit Attribute Value: Defines logic for how the custom attribute field on General Ledger Transaction records (i.e. GL Entries) is populated for the Debit records that comprise the GL Journal Entry - `brmObjects.DefineUniqueAttributes` (integer) Define Unique Attributes: Enables user to define different ledger attribute values for the Debit and Credit sides of GL entries - `brmObjects.Created` (string) System controlled field: Date and time the record was created - `brmObjects.Updated` (string) System controlled field: Date and time the record was last updated - `brmObjects.CreatedUserId` (string) System controlled field: Id of the user that created the record - `brmObjects.EntityFieldId` (integer) Field: Select the custom field (attribute) on the GL entity that you wish to populate with a value using the Ledger Attribute rule - `brmObjects.FormulaValue` (string) Attribute Value: Defines logic for how the custom attribute field on General Ledger Transaction records (i.e. GL Entries) is populated for both the Debit and Credit records that comprise the GL Journal Entry - `brmObjects.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `brmObjects.CreditAttributeValue` (string) Credit Attribute Value: Defines logic for how the custom attribute field on General Ledger Transaction records (i.e. GL Entries) is populated for the Credit records that comprise the GL Journal Entry - `brmObjects.Id` (string, required) Id: FINANCIAL_CRITERIA_ATTR_ID - `brmObjects.FinancialCriteriaId` (integer) FinancialCriteriaId - `brmObjects.ExternalKey` (string) ExternalKey - `externalIDFieldName` (string) Enum: "ExternalKey" ## Response 200 fields (application/json): - `upsertResponse` (array) - `upsertResponse.Id` (integer) - `upsertResponse.success` (boolean) - `upsertResponse.ErrorText` (string) - `upsertResponse.ErrorElementField` (string) - `upsertResponse.created` (boolean)