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

# Protected Apply Format

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

Copy one block's FORMATTING onto blocks of the same type on other pages.

The client says WHICH prop keys count as formatting (it holds the ui-kit
schema); the values are always read from the source block already stored for
this company, so this endpoint can never write content the tenant did not
already have. Content on the target blocks (texts, images, slides) is left
alone — styled text fields keep their own .text.

Request body:
{
    "source_page_id": 12,
    "source_block_id": "block-...",
    "prop_keys": ["height", "overlay"],
    "styled_text_keys": ["title", "subtitle"],
    "targets": [{"page_id": 14, "block_ids": ["block-..."]}]
}

## 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)
