Skip to main content

Summary

Replace the image source while preserving identity and placement.
  • Operation ID: images.replaceSource
  • API member path: editor.doc.images.replaceSource(...)
  • Mutates document: yes
  • Idempotency: non-idempotent
  • Supports tracked mode: yes
  • Supports dry run: yes
  • Deterministic target resolution: yes

Expected result

Returns an ImagesMutationResult with the updated image address.

Input fields

Example request

Output fields

Example response

Pre-apply throws

  • TARGET_NOT_FOUND
  • AMBIGUOUS_TARGET
  • INVALID_TARGET
  • CAPABILITY_UNAVAILABLE
  • INVALID_INPUT

Non-applied failure codes

  • NO_OP

Raw schemas