Change a Log entry
PATCH
/api/v1/notes/journal/entries/{block_id}
const url = 'https://example.com/api/v1/notes/journal/entries/example';const options = { method: 'PATCH', headers: { 'If-Match': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"date":"example","end":"example","start":"example","tags":["example"],"title":"example","tz":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/notes/journal/entries/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'If-Match: example' \ --data '{ "date": "example", "end": "example", "start": "example", "tags": [ "example" ], "title": "example", "tz": "example" }'Requires a signed-in User with edit access to the Daily note and the current Log entry ETag in If-Match. It returns 400 for invalid changes, 404 when the entry is missing, 412 when it changed, or 428 when If-Match is missing. Route: /api/v1/notes/journal/entries/{block_id}. Inputs: block_id, If-Match. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”block_id
required
string
Header Parameters
Section titled “Header Parameters”If-Match
required
string
Current Log entry ETag
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
date
string | null
end
string | null
start
string | null
tags
Array<string> | null
title
string | null
tz
string | null
Examplegenerated
{ "date": "example", "end": "example", "start": "example", "tags": [ "example" ], "title": "example", "tz": "example"}Responses
Section titled “Responses”Media typeapplication/json
object
attachments
required
Array<object>
object
embed
required
boolean
target
required
string
text
required
string
date
required
string
end
string | null
etag
required
string
id
required
string
start
required
string
tags
required
Array<string>
title
required
string
zone
string | null
Examplegenerated
{ "attachments": [ { "embed": true, "target": "example", "text": "example" } ], "date": "example", "end": "example", "etag": "example", "id": "example", "start": "example", "tags": [ "example" ], "title": "example", "zone": "example"}The Log entry changed
If-Match is required