Skip to main content

Summary

Wrap an existing text range with a hyperlink.
  • Operation ID: hyperlinks.wrap
  • API member path: editor.doc.hyperlinks.wrap(...)
  • Mutates document: yes
  • Idempotency: conditional
  • Supports tracked mode: no
  • Supports dry run: yes
  • Deterministic target resolution: yes

Expected result

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

Input fields

Example request

Output fields

Variant 1 (success=true)

Variant 2 (success=false)

Example response

Pre-apply throws

  • TARGET_NOT_FOUND
  • CAPABILITY_UNAVAILABLE
  • INVALID_TARGET
  • INVALID_INPUT

Non-applied failure codes

  • NO_OP

Raw schemas