When a markdown file's frontmatter page_id no longer exists in Confluence, update fails with a raw HTTP 404 (from GetPage, or from the v1 attachment API when the page is merely trashed — v2 still returns trashed pages while the v1 attachment endpoint 404s).
Detect the missing/trashed page up front in the update flow and emit a clear message, e.g. "page <id> from frontmatter no longer exists in Confluence; remove the page_id to recreate it with create, or fix the id" — instead of a bare 404. (From the old todo.md.)
When a markdown file's frontmatter
page_idno longer exists in Confluence,updatefails with a raw HTTP 404 (fromGetPage, or from the v1 attachment API when the page is merely trashed — v2 still returns trashed pages while the v1 attachment endpoint 404s).Detect the missing/trashed page up front in the update flow and emit a clear message, e.g. "page
<id>from frontmatter no longer exists in Confluence; remove the page_id to recreate it withcreate, or fix the id" — instead of a bare 404. (From the oldtodo.md.)