**Version: 202601**

# Preview page-builder canvas edits

**POST** `/openapi/2026-01/themes/page-builder/update`

Apply edit operations (`ops`) to the given canvas data and return the edited canvas data, the rendered HTML, the canvas text snapshot, and translations. Nothing is saved.

## Request

**application/json**

**Body | Example**

**Body (required)**

- `schema` object (required)

  Full canvas data (page-builder ProjectData)
- `ops` object[]

  Operations to apply; defaults to re-export

```json
{
  "schema": {},
  "ops": [
    {}
  ]
}
```

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `schema` object

    Full canvas data after the edits
  - `text` string

    New canvas text snapshot after applying ops
  - `html` string

    Rendered liquid/html
  - `translation` object[]

    i18n entries, each `{key,label,type,value}`
  - `failures` object[]

    Ops that failed to apply
  - `timings` object

    Timing metrics

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "schema": {},
    "text": "string",
    "html": "string",
    "translation": [
      {}
    ],
    "failures": [
      {}
    ],
    "timings": {}
  }
}
```
