Skip to content

Copy Section ​

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

Endpoint ​

MethodPathPurpose
POST/api/admin/appearance/sections/{id}/duplicateCopy a section

Path parameters ​

ParameterDescription
idSection to copy.

Response fields ​

FieldTypeDescription
sectionIdintegerID of the new copy.
sourceIdintegerSection 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 the section, then stage different content on the copy while the original keeps running.

Best practices ​

  • Read the copy back with Get section. This response carries the identity of the new section, not its content or position.
  • Copying a footer_links section is refused for a channel that already has one, the same rule that governs creating and updating.

Errors ​

StatusWhen
404No section with this ID.
422The copy would be a second footer_links section for the channel.

Permissions ​

Requires appearance.sections.create.

Released under the MIT License.