Delete a Log entry
DELETE
/api/v1/notes/journal/entries/{block_id}
const url = 'https://example.com/api/v1/notes/journal/entries/example';const options = { method: 'DELETE', 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 DELETE \ --url https://example.com/api/v1/notes/journal/entries/example \ --header 'Authorization: Bearer <token>' \ --header 'If-Match: example'Requires a signed-in User with edit access to the Daily note and the current Log entry ETag in If-Match. It keeps the entry’s child lines in the Daily note. It returns 412 when the entry 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
Responses
Section titled “Responses”Log entry deleted
The Log entry changed
If-Match is required