---
title: "Publish staged section edits"
method: POST
path: "/appearance/themes/{code}/sections/publish"
tags: ["Admin Appearance: Sections"]
---

# Publish staged section edits

`POST /appearance/themes/{code}/sections/publish`

## Request

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

Publish staged section edits

## Path parameters

- `code` string, required

## Query parameters

- `channel` integer

## Request body

- object
  - `channel` integer

## Response `200`

Staged edits published.

## Other responses

- `201`: AdminAppearanceSectionPublish resource created
- `400`: Invalid input
- `404`: Theme not installed.
- `422`: Validation Error

## Changes

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

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-admin-api/changes/appearance/themes/:code/sections/publish/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)
