Skip to main content

Summary

Set the z-order (relativeHeight) for a floating image.
  • Operation ID: images.setZOrder
  • API member path: editor.doc.images.setZOrder(...)
  • Mutates document: yes
  • Idempotency: conditional
  • Supports tracked mode: yes
  • Supports dry run: yes
  • Deterministic target resolution: yes

Expected result

Returns an ImagesMutationResult.

Input fields

FieldTypeRequiredDescription
imageIdstringyes
zOrderobjectyes
zOrder.relativeHeightintegeryes

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