Document apiReferenceContent controls
contentControls.prependContent
Prepend content to the beginning of a content control.
mutates documentdry runconditional
doc.contentControls.prependContent(…)Expected result
Returns a ContentControlMutationResult with the updated target.
Inputs
targetobjectrequiredFields
kind"block" | "inline"requirednodeType"sdt"requirednodeIdstringrequiredcontentstringrequired1 additional input field
format"text" | "html"Result
Output fields
true
successtruerequiredcontentControlobjectrequiredFields
kind"block" | "inline"requirednodeType"sdt"requirednodeIdstringrequiredupdatedRefobjectFields
kind"block" | "inline"requirednodeType"sdt"requirednodeIdstringrequiredfalse
successfalserequiredfailureReceiptFailurerequiredFields
codestringrequiredmessagestringrequireddetailsunknownFailures
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETAMBIGUOUS_TARGET
4 more codes
INVALID_INPUTLOCK_VIOLATIONREVISION_MISMATCHCAPABILITY_UNAVAILABLE
Non-applied receipt codes
NO_OP
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