Fix an unparsed Log line
POST
/api/v1/notes/journal/{date}/lines/{hash}/fix
const url = 'https://example.com/api/v1/notes/journal/example/lines/example/fix';const options = { method: 'POST', headers: {'If-Match': 'example', Authorization: 'Bearer <token>'}};
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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”date
required
string
hash
required
string
Header Parameters
Section titled “Header Parameters”If-Match
required
string
Strong ETag for the unparsed line
Responses
Section titled “Responses”Media typeapplication/json
object
line_index
required
integer
raw
required
string
Examplegenerated
{ "line_index": 1, "raw": "example"}The line changed
If-Match is required