Skip to content

Stage Status

Stages a section on or off. Like every other edit, it reaches the storefront only when the theme is published.

Endpoint

MethodPathPurpose
POST/api/admin/appearance/sections/{id}/statusStage a section on or off

Path parameters

ParameterDescription
idSection ID.

Request body

FieldTypeRequiredDescription
statusbooleanYestrue to show the section once published, false to hide it.

Response fields

FieldTypeDescription
sectionIdintegerSection the status belongs to.
draftStatusboolean | nullThe staged state.
hasDraftbooleanWhether the section now holds any staged edit.
messagestringConfirmation text.

Use cases

  • Take a section down at the next publish — stage false, keep the content, publish when ready. Nothing is deleted, so staging true later brings it back exactly as it was.

Best practices

  • The published status does not move here. Reading the section back still shows the old status; the new value sits in draftStatus until publish, which is what lets a merchant stage a takedown without it going live mid-edit.
  • To switch a section on or off immediately, send status on Update section instead — that writes the published value directly.

Errors

StatusWhen
404No section with this ID.
422status missing.

Permissions

Requires appearance.sections.edit.

Released under the MIT License.