> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superdoc.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# images.setWrapSide

> Set which side(s) text wraps around a floating image.

## Summary

Set which side(s) text wraps around a floating image.

* Operation ID: `images.setWrapSide`
* API member path: `editor.doc.images.setWrapSide(...)`
* 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

| Field | Type | Required | Description |
| - | - | - | - |
| `imageId` | string | yes | |
| `side` | enum | yes | `"bothSides"`, `"left"`, `"right"`, `"largest"` |

### Example request

```json theme={null}
{
  "imageId": "example",
  "side": "bothSides"
}
```

## Output fields

| Field | Type | Required | Description |
| - | - | - | - |
| `failure` | object | no | |
| `image` | object | no | |
| `success` | boolean | no | |

### Example response

```json theme={null}
{
  "image": {},
  "success": true
}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`
* `AMBIGUOUS_TARGET`
* `INVALID_TARGET`
* `CAPABILITY_UNAVAILABLE`

## Non-applied failure codes

* `NO_OP`

## Raw schemas

> [accordion] Raw input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "imageId": {
>       "type": "string"
>     },
>     "side": {
>       "enum": [
>         "bothSides",
>         "left",
>         "right",
>         "largest"
>       ],
>       "type": "string"
>     }
>   },
>   "required": [
>     "imageId",
>     "side"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw output schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "failure": {
>       "type": "object"
>     },
>     "image": {
>       "type": "object"
>     },
>     "success": {
>       "type": "boolean"
>     }
>   },
>   "type": "object"
> }
> ```

> [accordion] Raw success schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "image": {
>       "type": "object"
>     },
>     "success": {
>       "const": true
>     }
>   },
>   "required": [
>     "success",
>     "image"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw failure schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "failure": {
>       "additionalProperties": false,
>       "properties": {
>         "code": {
>           "type": "string"
>         },
>         "message": {
>           "type": "string"
>         }
>       },
>       "required": [
>         "code",
>         "message"
>       ],
>       "type": "object"
>     },
>     "success": {
>       "const": false
>     }
>   },
>   "required": [
>     "success",
>     "failure"
>   ],
>   "type": "object"
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.