# Update Actions Update Actions Endpoint: PUT /rest/2.0/CS_ACTION Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.ActionTypeId` (any, required) Collection Action - `brmObjects.AttachmentType` (any) Attachment: Invoice: Email will include all invoices past due at the time of executing the action.Statement: Email will include the statement of the account as of the date when the action is executed.Invoice + Statement: Both Statement and invoices will be added to the email. - `brmObjects.ContactType` (any, required) Contact Type: When Exact Contact is selected, the first collections contact will be emailed/called when the action is executed. When All Contacts is selected, all contacts under the Account will be emailed/called where Contact Category = Collections Contact - `brmObjects.ContactTypeId` (any, required) Contact Category - `brmObjects.Created` (any) System controlled field: Date and time the record was created - `brmObjects.CreatedUserId` (any) System controlled field: Id of the user that created the record - `brmObjects.DueOnDay` (any, required) Due On Day: Days after the strategy is triggered when the action will become due or automatically executed. E.g., If a strategy gets triggered on August 15th, an automatic action Due On Day 1 will be executed on that same day. - `brmObjects.EmailTemplateId` (any) Email Template: To create new templates, go to Setup > Templates > Email and create a new template using CS_ACCOUNT_ACTION as Base Entity. - `brmObjects.GenerateStatementFlag` (any) Generate Statement: If checked cause this action to email a newly generate statement in accordance to the statement template and statement from and to dates on the day the action is due, leave unchecked to have the action email latest available statement. - `brmObjects.Id` (any, required) Id: Primary key - `brmObjects.ManualFlag` (any) Automatic: If checked, the system will complete the action on the day it becomes due. If the action is missing any elements without which it cannot be completed (e.g., Email template is deleted before action is executed) the action will fail and it will become a manual Pending action. - `brmObjects.Priority` (any, required) Priority - `brmObjects.StatementEndDateFormula` (any) Statement To Date - `brmObjects.StatementFromDateFormula` (any) Statement From Date - `brmObjects.StatementTemplateId` (any) Statement Template - `brmObjects.StrategyId` (any, required) Strategy: Collection Strategy Id - `brmObjects.Updated` (any) System controlled field: Date and time the record was last updated - `brmObjects.UpdatedUserId` (any) System controlled field: Id of the last user that updated the record ## Response 200 fields (application/json): - `updateResponse` (array) - `updateResponse.Id` (any) - `updateResponse.success` (boolean) - `updateResponse.ErrorText` (string) - `updateResponse.ErrorElementField` (string) ## Response 400 fields (application/json): - `error` (string) Bad request - `message` (string) Bad request ## Response 401 fields (application/json): - `error` (string) Unauthorized - `message` (string) Unauthorized ## Response 404 fields (application/json): - `error` (string) Not found - `message` (string) Not found ## Response 429 fields (application/json): - `error` (string) Too many requests - `message` (string) Too many requests ## Response 500 fields (application/json): - `error` (string) Internal error - `message` (string) Internal error