Actions31
Document → Create
AI-generatedSummary
Create a new document in the Outline Wiki by specifying its title and optionally its Markdown-formatted body. Provide either a Collection ID or a Parent Document ID to associate the new document within the wiki's hierarchy, and optionally publish it immediately or save it as a draft.
Inputs
- Title (required) — The title of the new document.
- Body (Markdown) — Optional document body content in Markdown format.
- Collection ID — UUID of the collection to add the document to. Required unless Parent Document ID is set.
- Publish — Boolean flag to publish the document immediately (true) or save as a draft (false). Defaults to false.
- Additional Fields — Optional additional settings including Parent Document ID (to create as a child document) and Template ID (to use a template for the document content).
Output shape
a single object representing the created document, including its ID and details as returned by the Outline API
Either Collection ID or Parent Document ID must be provided; an error is thrown if both are missing. The response contains the full document data JSON from Outline API's /documents.create endpoint.
Examples
Example 1: Create a published child document under a specific parent
Set 'Title', optionally 'Body (Markdown)', provide 'Parent Document ID' in additional fields, and set 'Publish' to true.