Replace the tenant home-page marketing sections (fail-closed: all entries validated or request rejected)
PUT
/admin/v1/storefront/home-sections
const url = 'https://your-store.example.com/admin/v1/storefront/home-sections';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"sections":[{}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://your-store.example.com/admin/v1/storefront/home-sections \ --header 'Content-Type: application/json' \ --data '{ "sections": [ {} ] }'Request Body required
Section titled “Request Body required ” Media type application/json
object
sections
required
The ordered list of marketing section descriptors for the home page. Each entry must be a { type, settings } object. Every entry is validated by the SDK schema — a single invalid entry rejects the whole request. Capped at 50 entries.
Array<object>
object
Example generated
{ "sections": [ {} ]}