Document apiReferenceContent controls
contentControls.validateWordCompatibility
Validate a content control for Word compatibility issues.
read-onlyidempotent
doc.contentControls.validateWordCompatibility(…)Expected result
Returns a compatibility result with diagnostics.
Inputs
targetobjectrequiredFields
kind"block" | "inline"requirednodeType"sdt"requirednodeIdstringrequiredstoryStoryLocatorStory scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes.
body
kind"story"requiredstoryType"body"requiredheaderFooterSlot
kind"story"requiredstoryType"headerFooterSlot"requiredsectionSectionAddressrequiredheaderFooterKind"header" | "footer"requiredvariant"default" | "first" | "even"requiredresolution"effective" | "explicit"onWrite"materializeIfInherited" | "editResolvedPart" | "error"headerFooterPart
kind"story"requiredstoryType"headerFooterPart"requiredrefIdstringrequiredfootnote
kind"story"requiredstoryType"footnote"requirednoteIdstringrequiredendnote
kind"story"requiredstoryType"endnote"requirednoteIdstringrequiredtextbox
kind"story"requiredstoryType"textbox"requiredtextboxIdstringrequiredResult
Output fields
compatiblebooleanrequireddiagnosticsobject[]requiredFailures
Pre-apply throws
TARGET_NOT_FOUNDINVALID_INPUTCAPABILITY_UNAVAILABLE
Raw schemas
Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.
View raw JSON schemas