Batch Accounts
POST/account/batch
Processes a mixed batch of account add, update, and remove operations, up to 20 operations per request. Each operation behaves like /account/add, /account/update, or /account/remove, returns its own success or error result, and enforces its corresponding permission. A remove operation accepts the same optional cascade flag as /account/remove: by default an account with calendar events is not deleted and that operation returns an error, while cascade: true also permanently deletes the calendar events associated with the account, along with the event attachments and custom-field attachment files on the account. A failed cascade keeps that account and fails only its own operation. To delete notes on several accounts, send one update operation per account whose account holds the accountId and the note IDs in deletedNotes. Use this instead of repeated single calls when changing several specific accounts by ID. Use /account/bulk instead to change every account that matches a filter.
Request
Responses
- 200
- default
- 4XX
Success
Error
Unauthorized