postmd_update_document
Update an owned Markdown document by replacing its Markdown body or modifying metadata fields—title, viewer theme, password, or share expiration—via the PostMD API.
Instructions
Update a document you own. Requires an API key with documents:write. Include markdown to replace the stored content; any metadata field replaces that field. clearPassword / clearShareEndDate remove the password / end date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| docCode | Yes | ||
| fileName | No | Upload filename when replacing content. Default document.md. | |
| markdown | No | Full new Markdown body as one UTF-8 string. Omit if only metadata changes. | |
| password | No | Readers must supply this password to see the content. | |
| viewerStyle | No | Viewer theme: readable (default), github, minimal, report, pamphlet or dark. Unknown values fall back to readable. | |
| shareEndDate | No | yyyyMMdd. The document stops being served after this date. Omit for no end date. | |
| clearPassword | No | true removes the password. | |
| clearShareEndDate | No | true removes the end date, making sharing open-ended. |