Create and arrange storefront content blocks and banners. See Modules and banners.
List modules
Requires API permission themesModules. Access is restricted to the authenticated store. See Modules guide. Ordered by sort_order, then layout_module_id. Empty lists return 200 with response=[], results=0 and pages=0.
query Parameters
layout_idintegerFilter by layout; 0 selects global header/footer modules. Omit for all layouts.
positionstring · enumEnum values:content_topcontent_bottomheaderfooterpageinteger · min: 1Default: 1limitinteger · min: 1 · max: 100Default: 10
Responses
Success
successbooleanExample: trueresponseobject[]resultsintegerpagesintegerpageintegerper_pageintegerrequest_idstring
Create module
Requires API permission themesModules. Access is restricted to the authenticated store. See Modules guide.
Request Body
layout_idinteger · required0 for header/footer; otherwise an existing layout ID belonging to this store.
codestring · enum · requiredMust be allowed for the selected layout or global position.
Enum values:homefeaturedcategorybannerscategory_slideproduct_slideembedinfo_sliderbrandsfaqcomponentstring · enum · requiredlayout for a positive layout_id; otherwise must equal position.
Enum values:layoutheaderfooterpositionstring · enum · requiredcontent_top/content_bottom for a layout; header/footer for layout_id 0.
Enum values:content_topcontent_bottomheaderfootersort_orderinteger · requiredsettingsobject · requiredSettings for a new module. Requirements depend on code; see the Modules and banners guide. Updates preserve omitted keys and translations; supplied nested lists replace the saved list.
bannersobject[]For code=banners. New images use banner_image_id=0 and require desktop and mobile CDN URLs. Existing banner omission during an update does not delete it; use the explicit gateway banner delete endpoint.
Responses
Success
successbooleanExample: trueresponseobjectrequest_idstring
Get module
Requires API permission themesModules. Access is restricted to the authenticated store. See Modules guide.
path Parameters
layout_module_idinteger · requiredModule ID belonging to the authenticated store.
Responses
Success
successbooleanExample: trueresponseobjectrequest_idstring
Update module
Requires API permission themesModules. Updates the authenticated store only. Send only changed fields. Omitted module fields, settings and translations keep their saved values; supplied nested settings lists replace that list. Omitted banners are retained, including when banners is []. Read first. Applies immediately to the live store; no version check. See Modules and banners.
path Parameters
layout_module_idinteger · requiredModule ID belonging to the authenticated store.
Request Body
layout_idinteger0 for header/footer; otherwise an existing layout ID belonging to this store.
codestring · enumMust be allowed for the selected layout or global position.
Enum values:homefeaturedcategorybannerscategory_slideproduct_slideembedinfo_sliderbrandsfaqcomponentstring · enumlayout for a positive layout_id; otherwise must equal position.
Enum values:layoutheaderfooterpositionstring · enumcontent_top/content_bottom for a layout; header/footer for layout_id 0.
Enum values:content_topcontent_bottomheaderfootersort_orderintegersettingsobjectOnly settings to change. Omitted map keys and translations keep saved values. A supplied nested list replaces that whole list. Changing code or moving a module can require additional settings valid for the destination.
bannersarrayExisting IDs merge changed fields; new banners use ID 0. IDs must belong to this module and cannot repeat. Omitted banners are retained. Use the explicit gateway DELETE endpoint for removal.
Responses
Success
successbooleanExample: trueresponseobjectrequest_idstring
Delete module
Requires API permission themesModules. Access is restricted to the authenticated store. See Modules guide. Deleting a banners module also deletes its related banner images through the existing module lifecycle.
path Parameters
layout_module_idinteger · requiredModule ID belonging to the authenticated store.
Responses
Success
successbooleanExample: trueresponseobjectrequest_idstring
Partially update module
Requires API permission themesModules. Updates the authenticated store only. Send only changed fields. Omitted module fields, settings and translations keep their saved values; supplied nested settings lists replace that list. Omitted banners are retained, including when banners is []. Read first. Applies immediately to the live store; no version check. See Modules and banners.
path Parameters
layout_module_idinteger · requiredModule ID belonging to the authenticated store.
Request Body
layout_idinteger0 for header/footer; otherwise an existing layout ID belonging to this store.
codestring · enumMust be allowed for the selected layout or global position.
Enum values:homefeaturedcategorybannerscategory_slideproduct_slideembedinfo_sliderbrandsfaqcomponentstring · enumlayout for a positive layout_id; otherwise must equal position.
Enum values:layoutheaderfooterpositionstring · enumcontent_top/content_bottom for a layout; header/footer for layout_id 0.
Enum values:content_topcontent_bottomheaderfootersort_orderintegersettingsobjectOnly settings to change. Omitted map keys and translations keep saved values. A supplied nested list replaces that whole list. Changing code or moving a module can require additional settings valid for the destination.
bannersarrayExisting IDs merge changed fields; new banners use ID 0. IDs must belong to this module and cannot repeat. Omitted banners are retained. Use the explicit gateway DELETE endpoint for removal.
Responses
Success
successbooleanExample: trueresponseobjectrequest_idstring
Reorder or move modules
Requires API permission themesModules. Access is restricted to the authenticated store. Listed modules come first; unlisted modules in supplied positions retain relative order afterwards. For a move from another layout also send layout_module_id and include it in the order. Destination must allow the module. Changing layouts clears old related_ids. Affects the live store. See Store design.
Request Body
layout_idinteger · requiredDestination layout ID; 0 for global header/footer modules.
sorted_modulesobject · requiredUse content_top/content_bottom for layouts or header/footer for global modules. No ID may repeat. Listed modules come first; unlisted modules in each supplied position retain their relative order afterwards. Omitted positions are unchanged.
layout_module_idinteger · min: 1For a move from another layout. Also include this ID in sorted_modules. Changing layouts clears the old settings.related_ids.
Responses
Success
successbooleanExample: trueresponseobjectrequest_idstring
Delete one banner image
Requires API permission themesModules. Access is restricted to the authenticated store. Permanently removes the selected banner belonging to this module/store. Other banners remain. Affects the live store; CSS/JS snapshots cannot undo it. No request body or confirmed field is used by this REST endpoint. See Store design.
path Parameters
layout_module_idinteger · min: 1 · requiredExisting ID belonging to the authenticated store.
banner_image_idinteger · min: 1 · requiredExisting ID belonging to the authenticated store.
Responses
Success
successbooleanExample: trueresponseobjectrequest_idstring