---
title: "Apply Preset To Web Widgets"
method: POST
path: "/core/web-widget-presets/{id}/apply"
tags: ["Web Widget Presets"]
---

# Apply Preset To Web Widgets

`POST /core/web-widget-presets/{id}/apply`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/web-widget-presets/{id}/apply`
- Auth: HTTP bearer

Make widgets follow this preset's `sections`, or copy them in once.

With `dry_run`, nothing is written and the response says which sections
would change on each widget, for the confirmation step.

## Path parameters

- `id` string, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- WebWidgetPresetApplyRequest
  - `widget_ids` string[], required
  - `sections` string[]
  - `mode` 'follow' | 'copy'
  - `dry_run` boolean

## Response `200`

Successful Response

- WebWidgetPresetApplyResponse
  - `applied` boolean, required
  - `widgets` LinkedWidget[], required
    - `widget_id` string, required
    - `name` string, nullable
    - `published` boolean, required
    - `previous_preset_id` string, nullable
    - `followed_sections` string[], required
    - `sections_changing` string[], required
    - `sections_replacing` string[], required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
