Skip to main content

Summary

Set the text wrapping type for a floating image.
  • Operation ID: images.setWrapType
  • API member path: editor.doc.images.setWrapType(...)
  • Mutates document: yes
  • Idempotency: conditional
  • Supports tracked mode: yes
  • Supports dry run: yes
  • Deterministic target resolution: yes

Expected result

Returns an ImagesMutationResult; reports NO_OP if already set.

Input fields

FieldTypeRequiredDescription
imageIdstringyes
typeenumyes"None", "Square", "Through", "Tight", "TopAndBottom", "Inline"

Example request

Output fields

FieldTypeRequiredDescription
failureobjectno
imageobjectno
successbooleanno

Example response

Pre-apply throws

  • TARGET_NOT_FOUND
  • AMBIGUOUS_TARGET
  • INVALID_TARGET
  • CAPABILITY_UNAVAILABLE

Non-applied failure codes

  • NO_OP

Raw schemas