---
title: "Save an HTML document as a reusable layout"
method: POST
path: "/documents/{uuid}/save_as_html_layout"
tags: ["html_artifacts"]
---

# Save an HTML document as a reusable layout

`POST /documents/{uuid}/save_as_html_layout`

Copies the current HTML document revision into a new independent HTML layout. Later edits or deletion of either item do not affect the other.

## Path parameters

- `uuid` string, required

## Request body

- object
  - `name` string, required — Name for the new layout

## Other responses

- `400` — Bad Request - Invalid parameters or malformed request
- `401` — Unauthorized - Invalid or missing authentication
- `403` — Forbidden - User lacks permission to access this resource
- `404` — Not Found - Resource does not exist
- `422` — Unprocessable Entity - Invalid request parameters or validation errors
- `429` — Too Many Requests - Rate limit exceeded
- `500` — Internal Server Error - Unexpected server error

## Changes

- **2026-09-09** `2dd1253eb733` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/rhythms/apis/rhythms-params-in-body/changes/documents/:uuid/save_as_html_layout/post.md)

---

[API](https://skmtc.dev/rhythms/apis/rhythms-params-in-body.md) · [All operations](https://skmtc.dev/rhythms/apis/rhythms-params-in-body/llms.txt) · [OpenAPI document](https://skmtc.dev/rhythms/apis/rhythms-params-in-body/revisions/be444d98d5ff?raw)
