---
title: "Sync navbar & footer from one page to all pages"
method: POST
path: "/api/v1/sites/{subdomain}/sync-chrome"
tags: ["sites"]
---

# Sync navbar & footer from one page to all pages

`POST /api/v1/sites/{subdomain}/sync-chrome`

## Request

- Base URL: `https://slatehut.com`
- URL: `https://slatehut.com/api/v1/sites/{subdomain}/sync-chrome`
- Auth: HTTP bearer

Copies the navbar and footer blocks from a source page (default: home) to every other page on the site, including `dynamic.templateBlocks` for CMS detail pages. Mirrors the editor's "Apply to all pages" action. Existing navbar/footer blocks on target pages are replaced in-place; pages without them get the block prepended (navbar) or appended (footer).

## Request body

- object
  - `sourcePageSlug` string: Slug of the page to copy navbar/footer from. Defaults to home page (`""`).

## Response `200`

Sync complete

- object
  - `success` boolean, required
  - `synced` string[], required: Which block types were found and synced

## Other responses

- `400`: Validation or conflict error
- `401`: Missing or invalid credentials
- `403`: Not allowed for this resource
- `404`: Resource not found

---

[API](https://skmtc.dev/slatehut/apis/slatehut-api.md) · [All operations](https://skmtc.dev/slatehut/apis/slatehut-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slatehut/apis/slatehut-api/revisions/32dae277550c?raw)
