Skip to content

createAdminAppearanceSectionDuplicate ​

Copies a section, including its content in every locale, into the same theme and channel.

Input fields ​

FieldTypeRequiredDescription
sectionIdIntYesSection to copy.

Payload fields ​

FieldTypeDescription
sectionIdIntID of the new copy.
sourceIdIntSection that was copied.
nameStringName given to the copy.
typeStringSection type, same as the source.
messageStringConfirmation text.

Use cases ​

  • Build a variant of a working block — copy it, then stage different content on the copy while the original keeps running.

Best practices ​

  • Read the copy back with adminAppearanceSection. This payload carries identity, not content or position.
  • Copying a footer_links section is refused for a channel that already has one.

Permissions ​

Requires appearance.sections.create.

Released under the MIT License.