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

# Update a section

`PUT /appearance/sections/{id}`

## Request

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

Writes the published values of a section. Send `options` with `?locale=` to write that locale's published content; use the draft endpoint to stage edits instead.

## Path parameters

- `id` integer, required

## Query parameters

- `locale` string

## Request body

- object
  - `name` string, required
  - `type` 'image_carousel' | 'product_carousel' | 'category_carousel' | 'footer_links' | 'static_content' | 'services_content', required
  - `sortOrder` integer, required
  - `channelId` integer, required
  - `themeCode` string, required
  - `status` boolean
  - `options` object

## Response `200`

Section updated.

## Other responses

- `400`: Invalid input
- `404`: Section not found.
- `422`: Invalid payload, or a second footer links section.

## Changes

- **2026-09-09** `2e6fdf8f57c9`: 1 breaking
  - removed the media type `text/html` for the response with the status `200`
- **2026-08-26** `a34d6835b19b`: 1 info
  - endpoint added

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