latestOpenAPI 3.1.02026-08-204087139.4 KB

c4fe20c603a3

site-diagnostics

Apply Page Optimization

Record that a page's optimization was acted on off-platform — for when the change was made outside Scrunch (e.g. in Sitecore), so no Scrunch review is needed.

Send exactly one of: approve_all: true to accept every changed block, or a reviews list with per-block verdicts by chunk id (approved keeps our version, rejected keeps the original). A reviews list can be partial — un-verdicted blocks keep the run pending, so blocks can be resolved across several calls. The page is acknowledged automatically once every changed block has a verdict, matching the in-app flow that can't close a page with an unresolved block.

Applies to the page's latest run. Returns the run (same shape as the optimization endpoint) — acknowledged once complete, otherwise still pending. Returns 422 when neither or both actions are given, 404 when the page has no run, and 409 for an edge-delivery (AXP-active) page — those go through the edge staging workflow.

post/{brand_id}/site-diagnostics/optimization/apply

Path parameters

brand_idinteger required

Request body

pathstring required

The page path, e.g. /about.

approve_allboolean

Accept every changed block. Mutually exclusive with reviews.

Response

Successful Response

pathstring required
status'pending' | 'completed' | 'staged' | 'deployed' | 'retired' | 'outdated' | 'acknowledged' required