Skip to main content
Alpha: Document API is currently alpha and subject to breaking changes.

Summary

Insert a new image at the target position.
  • Operation ID: create.image
  • API member path: editor.doc.create.image(...)
  • Mutates document: yes
  • Idempotency: non-idempotent
  • Supports tracked mode: no
  • Supports dry run: yes
  • Deterministic target resolution: yes

Expected result

Returns a CreateImageResult with the new image address.

Input fields

Example request

Output fields

Example response

Pre-apply throws

  • TARGET_NOT_FOUND
  • INVALID_TARGET
  • CAPABILITY_UNAVAILABLE
  • INVALID_INPUT

Non-applied failure codes

  • INVALID_TARGET
  • INVALID_INPUT

Raw schemas