Skip to content

Change a Log entry

PATCH
/api/v1/notes/journal/entries/{block_id}
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.

block_id
required
string
If-Match
required
string

Current Log entry ETag

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"
}
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