Books
Bulk update journal entries
Changed onput/books/journal-entries/{booksId}
Request
- Base URLhttps://api.mercury.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
booksIdstring uuid required
Request body
Example request
{
"updates": [
{
"datetime": "2016-07-22T00:00:00Z",
"journalEntryId": "7JRNsKwy2Lw66caxVU7WGC",
"lineEntryChanges": {
"create": [
{
"ledgerId": "7JRNsKwy2Lw66caxVU7WGC",
"tagIds": [
"7JRNsKwy2Lw66caxVU7WGC"
]
}
],
"delete": [
"7JRNsKwy2Lw66caxVU7WGC"
],
"update": [
{
"id": "7JRNsKwy2Lw66caxVU7WGC",
"ledgerId": "7JRNsKwy2Lw66caxVU7WGC",
"tagIds": [
"7JRNsKwy2Lw66caxVU7WGC"
]
}
]
}
}
]
}Response
Example response
[]
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking