Skip to content

Save the editor's content

PUT/admin/v1/stores/{store_id}/online-store/themes/{theme_id}/content
  • themes:manage

Save the editor's content. Send the theme's version as If-Match; a stale version is refused with 409. Content that doesn't fit the theme is refused with 422 and the paths of the problems.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • theme_idstringrequired

    The store theme's ID, like sthm_01k8qs5s….

Headers

  • If-Matchstring · or null

    The theme's version

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • contentobjectrequired

    settings, templates and groups.

Returns

200 Saved.

Errors

  • 404not_foundNo such theme.
  • 409Saved by someone else (version_conflict).
  • 422validation_failedThe content doesn't fit the theme.