Admin Appearance: Sections
Create a section
Changed onCreates 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
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
codestring required
Example:default
Theme code
Query parameters
channelinteger
Example:1
Channel ID (defaults to the current channel)
Request body
Example request
{
"name": "Summer Banner",
"type": "image_carousel"
}Response
Section created.
Changes
- breaking
removed the media type
text/htmlfor the response with the status
- breaking
- info
endpoint added
- info