---
title: "Bulk update journal entries"
method: PUT
path: "/books/journal-entries/{booksId}"
tags: ["Books"]
---

# Bulk update journal entries

`PUT /books/journal-entries/{booksId}`

## Path parameters

- `booksId` string, uuid, required

## Request body

- UpdateBooksAPIJournalEntriesRequest — Request to update multiple journal entries in a single call.
  - `updates` UpdateBooksAPIJournalEntryRequest[], required — The individual journal entry updates
    - `datetime` string, yyyy-mm-ddThh:MM:ssZ, nullable — Updated date and time
    - `description` string, size < 513, nullable — Updated description
    - `journalEntryId` string, base58 (max length 22), required — The ID of the journal entry to update
    - `lineEntryChanges` object, nullable — Changes to apply to line entries
      - `create` BooksAPIUpdateJournalEntryLECreate[], nullable — New line entries to add
        - `amount` number, double, required — The amount for this line entry
        - `debitCredit` 'debit' | 'credit', required — Whether this line entry is a debit or credit
        - `description` string, size < 4001, required — Description of the line entry
        - `ledgerId` string, base58 (max length 22), required — The ledger this line entry is posted to
        - `sortOrder` integer, nullable — Optional position within the journal entry. Omit to append at MAX(sort_order) + 1.
        - `tagIds` string[], nullable — Optional tags to associate with this line entry
      - `delete` string[], nullable — IDs of line entries to remove
      - `update` BooksAPIUpdateJournalEntryLEUpdate[], nullable — Existing line entries to modify
        - `amount` number, double, nullable — Updated amount
        - `debitCredit` 'debit' | 'credit', nullable — Updated debit/credit designation
        - `description` string, size < 4001, nullable — Updated description
        - `id` string, base58 (max length 22), required — The ID of the line entry to update
        - `ledgerId` string, base58 (max length 22), nullable — Updated ledger
        - `sortOrder` integer, nullable — Updated position within the journal entry. Omit to leave unchanged.
        - `tagIds` string[], nullable — Updated tags

## Response `200`

- unknown[]
  - unknown

## Other responses

- `400` — Invalid `body`
- `404` — `booksId` not found

---

[API](https://skmtc.net/mercurytechnologies/apis/mercury-api.md) · [All operations](https://skmtc.net/mercurytechnologies/apis/mercury-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mercurytechnologies/mercury-api/revisions/0bdf4a496e03/schema)
