Skip to content

Fix an unparsed Log line

POST
/api/v1/notes/journal/{date}/lines/{hash}/fix
curl --request POST \
--url https://example.com/api/v1/notes/journal/example/lines/example/fix \
--header 'Authorization: Bearer <token>' \
--header 'If-Match: example'

Requires a signed-in User with edit access to the Daily note and its current ETag in If-Match. It returns 400 when the line is not valid, 404 when the line is missing, 412 when the note changed, or 428 when If-Match is missing. Route: /api/v1/notes/journal/{date}/lines/{hash}/fix. Inputs: date, hash, If-Match. Do not automatically replay this operation after an uncertain result.

date
required
string
hash
required
string
If-Match
required
string

Strong ETag for the unparsed line

Media typeapplication/json
object
line_index
required
integer
raw
required
string
Examplegenerated
{
"line_index": 1,
"raw": "example"
}

The line changed

If-Match is required