Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Move an image to a new location in the document.- Operation ID:
images.move - API member path:
editor.doc.images.move(...) - Mutates document:
yes - Idempotency:
non-idempotent - Supports tracked mode:
no - Supports dry run:
yes - Deterministic target resolution:
yes
Expected result
Returns an ImagesMutationResult indicating success or failure.Input fields
| Field | Type | Required | Description | ||||
|---|---|---|---|---|---|---|---|
imageId | string | yes | |||||
to | object(kind=“documentStart”) \ | object(kind=“documentEnd”) \ | object(kind=“before”) \ | object(kind=“after”) \ | object(kind=“inParagraph”) | yes | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”), object(kind=“inParagraph”) |
Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
failure | object | no | |
image | object | no | |
success | boolean | no |
Example response
Pre-apply throws
TARGET_NOT_FOUNDAMBIGUOUS_TARGETINVALID_TARGETCAPABILITY_UNAVAILABLE
Non-applied failure codes
INVALID_TARGET
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema
Raw success schema
Raw success schema
Raw failure schema
Raw failure schema

