Create Log entries in a batch
const url = 'https://example.com/api/v1/notes/journal/log/batch';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"entries":[{"attachments":[{"target":"example","text":"example"}],"client_id":"example","now":"example","position":{"latitude":1,"longitude":1},"text":"example","timezone":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/notes/journal/log/batch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "entries": [ { "attachments": [ { "target": "example", "text": "example" } ], "client_id": "example", "now": "example", "position": { "latitude": 1, "longitude": 1 }, "text": "example", "timezone": "example" } ] }'Requires a signed-in User with the data scope. It validates the batch before it adds entries to Daily notes. It returns 400 when the batch is empty, too large or contains an invalid entry. Route: /api/v1/notes/journal/log/batch. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Entries accepted by the durable Log batch endpoint. The endpoint bounds this list at 1,000 before allocating block IDs or touching the Home (#468).
object
object
Files already in the Home (uploaded by the composer) to link below the
new entry, in order: -  for an embed, else
- [text](<target>). Written in the same Daily note write as the
entry, so an entry never lands without the attachments it was sent
with.
One composer attachment: a Home-relative file path and its link text (#421).
object
Stable create identity supplied by the Installation. Receipts retain the first outcome so partial Composer retries cannot create another Log (#844).
Examplegenerated
{ "entries": [ { "attachments": [ { "target": "example", "text": "example" } ], "client_id": "example", "now": "example", "position": { "latitude": 1, "longitude": 1 }, "text": "example", "timezone": "example" } ]}Responses
Section titled “Responses”Results preserve request order while each file is written once (#468).
object
Examplegenerated
{ "entries": [ { "date": "example", "end": "example", "etag": "example", "id": "example", "path": "example", "place": { "id": "example", "name": "example" }, "start": "example", "tags": [ "example" ], "title": "example", "zone": "example" } ]}