Reference
willo_document_write
Create a business document (no id: title, doc_type, content) — runs without a card — or change one (id from willo_documents with old_text → new_text…
- Act
- May need approval
- Secret scan
On this page
Write a business document. Create a business document (no id: title, doc_type, content) — runs without a card — or change one (id from willo_documents with old_text → new_text, and/or a new title / doc_type), which needs a person's approval (pending_approval + link). Documents are Willo's records, not the site.
Access
- Token: read + act, and editor access or higher on the business.
- Approval: Only when Willo's chat would stop for the same action. The description says when; otherwise the call runs at once.
- Secret scan: refused if the new content holds a value shaped like an API key or token.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer ≥ 1 | no | The document to change. Omit to create. |
title | string | no | Title (required to create). |
doc_type | string (mission or strategy or brand_guide or report or analysis or proposal or other) | no | Kind of document (required to create). |
content | string | no | Create only: the full text. |
replace | boolean | no | Create only: replace an existing document with the same title. |
old_text | string | no | Change only: exact text to replace. |
new_text | string | no | Change only: the replacement. |
summary | string | no | Change only: one plain sentence for the owner, shown on the card. |