Admin Appearance: Sections
Update a section
Changed onWrites 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.
put/appearance/sections/{id}
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Section ID
Query parameters
localestring
Example:en
Locale the options belong to
Request body
Example request
{
"name": "Summer Banner",
"type": "image_carousel",
"sortOrder": 2,
"channelId": 1,
"themeCode": "default",
"status": true,
"options": {
"images": []
}
}Response
Section updated.
Changes
- breaking
removed the media type
text/htmlfor the response with the status
- breaking
- info
endpoint added
- info