Admin Appearance: Sections
Discard staged section edits
Changed onDiscard staged section edits
post/appearance/themes/{code}/sections/discard
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
{
"channel": 1
}Response
Staged edits discarded.
Changes
- breaking
removed the media type
text/htmlfrom the request body - breaking
the request property
became not nullable - warning
removed the request property
- info
request body became optional
- breaking
- info
endpoint added
- info