Create a Log entry
const url = 'https://example.com/api/v1/notes/journal/log';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "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 adds a validated Log entry to a Daily note at its start-time position. It returns 400 when the text, time or Tags are invalid. Route: /api/v1/notes/journal/log. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”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
{ "attachments": [ { "target": "example", "text": "example" } ], "client_id": "example", "now": "example", "position": { "latitude": 1, "longitude": 1 }, "text": "example", "timezone": "example"}Responses
Section titled “Responses”object
Examplegenerated
{ "date": "example", "end": "example", "etag": "example", "id": "example", "path": "example", "place": { "id": "example", "name": "example" }, "start": "example", "tags": [ "example" ], "title": "example", "zone": "example"}