---
title: "Saves a page template"
method: POST
path: "/api/v1/page/layout"
tags: ["Page"]
---

# Saves a page template

`POST /api/v1/page/layout`

Handles saving of a page template using provided data. Method processes the request and returns HTTP response indicating a complete save operation.

## Request body

- PageForm
  - `themeId` string
  - `title` string
  - `siteId` string
  - `layout` TemplateLayout
    - `width` string
    - `title` string
    - `header` boolean
    - `footer` boolean
    - `body` Body
      - `rows` TemplateLayoutRow[]
        - `columns` TemplateLayoutColumn[]
          - `containers` ContainerUUID[]
            - `identifier` string
            - `uuid` string
            - `historyUUIDs` string[]
          - `widthPercent` integer
          - `leftOffset` integer
          - `styleClass` string
          - `preview` boolean
          - `width` integer
          - `left` integer
        - `styleClass` string
    - `sidebar` Sidebar
      - `containers` ContainerUUID[]
        - `identifier` string
        - `uuid` string
        - `historyUUIDs` string[]
      - `location` string
      - `width` string
      - `widthPercent` integer
      - `preview` boolean
    - `version` integer
    - `bodyRows` TemplateLayoutRow[]
      - `columns` TemplateLayoutColumn[]
        - `containers` ContainerUUID[]
          - `identifier` string
          - `uuid` string
          - `historyUUIDs` string[]
        - `widthPercent` integer
        - `leftOffset` integer
        - `styleClass` string
        - `preview` boolean
        - `width` integer
        - `left` integer
      - `styleClass` string
  - `anonymousLayout` boolean

## Response `200`

Page template saved successfully

- ResponseEntityView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` object
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Bad request or data exception
- `404` — Page not found

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anzworldline-solutions/dotcms-rest-api/revisions/0f38cbc3bd36/schema)
