Document apiReferenceHyperlinks

hyperlinks.remove

Remove a hyperlink. Mode 'unwrap' preserves display text; 'deleteText' removes the linked content entirely.

mutates documentdry runconditional
doc.hyperlinks.remove(…)

Expected result

Returns a HyperlinkMutationResult with the removed hyperlink address on success, or a failure code on no-op.

Inputs

targetobjectrequired
Fields
kind"inline"required
nodeType"hyperlink"required
anchorInlineAnchorrequired
Fields
startPositionrequired
endPositionrequired
1 additional input field
mode"unwrap" | "deleteText"

Result

Output fields
true
successtruerequired
hyperlinkobjectrequired
Fields
kind"inline"required
nodeType"hyperlink"required
anchorInlineAnchorrequired
Fields
startPositionrequired
endPositionrequired
false
successfalserequired
failureobjectrequired
Fields
code"NO_OP" | "INVALID_TARGET" | "TARGET_NOT_FOUND" | "CAPABILITY_UNAVAILABLE"required
messagestringrequired
detailsobject

Failures

Pre-apply throws

  • TARGET_NOT_FOUND
  • CAPABILITY_UNAVAILABLE
  • INVALID_TARGET
1 more codes
  • INVALID_INPUT

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