createAdminAppearanceSectionStatus
Stages a section on or off. Like every other edit, it reaches the storefront only when the theme is published.
Input fields
| Field | Type | Required | Description |
|---|---|---|---|
sectionId | Int | Yes | Section whose state is being staged. |
status | Boolean | Yes | true to show the section once published, false to hide it. |
Payload fields
| Field | Type | Description |
|---|---|---|
sectionId | Int | Section the status belongs to. |
draftStatus | Boolean | The staged state. |
hasDraft | Boolean | Whether the section now holds any staged edit. |
message | String | Confirmation text. |
Use cases
- Take a section down at the next publish — stage
false, keep the content, publish when ready. Stagingtruelater brings it back exactly as it was.
Best practices
- The published
statusdoes not move here. Re-querying the section still shows the old value; the new one sits indraftStatusuntil publish. - To switch a section on or off immediately, send
statuson updateAdminAppearanceSection instead.
Permissions
Requires appearance.sections.edit.

