---
title: "Protected Apply Block"
method: PUT
path: "/api/websites/{website_id}/apply-block"
tags: ["Websites - Protected"]
---

# Protected Apply Block

`PUT /api/websites/{website_id}/apply-block`

Apply a block to multiple pages at once.

- Replaces existing block of same type, or inserts at start (header) / end (footer)
- Generates new unique IDs for each page to prevent collisions

Request body:
{
    "block": { "id": "...", "type": "BarraSuperior", "props": {...}, "children": [...] },
    "page_ids": [1, 2, 3, 5]
}

## Path parameters

- `website_id` integer, required

## Headers

- `x-api-token` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
