---
title: "Copy a section"
method: POST
path: "/appearance/sections/{id}/duplicate"
tags: ["Admin Appearance: Sections"]
---

# Copy a section

`POST /appearance/sections/{id}/duplicate`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/appearance/sections/{id}/duplicate`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/appearance/sections/:id/duplicate/post.ts> (a function with typed inputs; its response is checked against the schema)

Copies a section and its content into the same theme and channel. The copy is created switched off. Read the copy back with the section endpoint.

## Path parameters

- `id` integer, required

## Request body

- object

## Response `200`

Section copied.

## Other responses

- `201`: AdminAppearanceSectionDuplicate resource created
- `400`: Invalid input
- `404`: Section not found.
- `422`: Validation Error

## Changes

- **2026-08-27** `3c859f92343f`: 1 breaking, 1 warning, 1 info
  - removed the media type `text/html` from the request body
  - removed the request property `sectionId`
  - request body became optional
- **2026-08-26** `a34d6835b19b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-admin-api/changes/appearance/sections/:id/duplicate/post.md)

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
