Batch operations (transactional)
batchExecute multiple record operations atomically in one request. All operations succeed together or roll back, ensuring data consistency for create, update, delete, and upsert actions.
Instructions
Execute multiple record operations in a single transactional request. All operations succeed or all are rolled back. Each operation has an action ('create' | 'update' | 'delete' | 'upsert'), a target collection, and depending on the action a data object and/or record id. For 'upsert', include the record 'id' inside data (creates if missing, updates if present). Note: the Batch API must be enabled in PocketBase settings (Settings > Batch API).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | List of operations to run atomically. |