get_document
Retrieve document metadata (title, type, status, editors, custom fields) and optionally include raw HTML content for editing.
Instructions
Get a document's metadata: title/type/status/editors/custom fields.
Also returns outline numbering + autoSuspect (round-trip via update_document). author / last_updated_by are display names (creator, last editor); updated is the last-modified timestamp.
include_homepage_content_html=True fills content_html with raw homePageContent HTML — the required source for update_document(home_page_content_html=...). That body is inline prose only (headings / embedded work items live elsewhere; read_document renders all). Never feed back a blanked (flag=False) body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | Space ID ('_default' = default space). | |
| project_id | Yes | Polarion project ID. | |
| document_name | Yes | Document name within space_id. | |
| include_homepage_content_html | No | Fill content_html with raw HTML for round-trip editing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| title | Yes | ||
| author | No | ||
| status | No | ||
| updated | No | ||
| auto_suspect | No | ||
| content_html | No | ||
| custom_fields | No | ||
| last_updated_by | No | ||
| uses_outline_numbering | No |