Skip to main content
PUT
Update Section Settings
Changes the settings of one section on a template. Requires the write_themes scope. The values you send are merged into the section’s current settings; settings you leave out keep their values.

Request

Path Parameters

string
required
The theme id.
string
required
The section’s id in the template (the id from Template Sections).

Body Parameters

string
required
The template the section is on. Templates are named as in the theme’s templates/ folder: index, product, product.alternate, customers/account (URL-encode the / in a path segment), and section groups such as header-group. A path such as templates/index.json is accepted too. Also accepted as templatePath, templateName or a ?template= query parameter.
object
required
Setting ids mapped to their new values.

Response

The section’s settings after the change are returned under data.settings.

Error Codes