Admin Appearance: Sections

Create a section

Changed on

Creates a section against the theme and channel the request is scoped to. It is created switched off with a pending status draft, exactly as the appearance editor does, so an empty section is never put in front of shoppers before it is built.

post/appearance/themes/{code}/sections

Request

Path parameters

codestring required
Example:default

Theme code

Query parameters

channelinteger
Example:1

Channel ID (defaults to the current channel)

Request body

namestring required
type'image_carousel' | 'product_carousel' | 'category_carousel' | 'footer_links' | 'static_content' | 'services_content' required

Example request

{
  "name": "Summer Banner",
  "type": "image_carousel"
}

Response

Section created.

Changes