Skip to content

Update blog

PUT/admin/v1/stores/{store_id}/blogs/{blog_id}
  • content:write

Replace a blog. A new handle redirects the old paths of the blog and its live articles.

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.

  • blog_idstringrequired

    The blog's ID, like blog_01k8qs5s….

Headers

  • If-Matchstring · or null

    The blog's ETag ("v{version}")

  • shop-api-versionYYYY-MM

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

Body

  • titlestringrequired
  • handlestring

    Derived from the title when empty on create; kept when empty on update. A new handle redirects the blog's old paths.

  • seo_titlestring · or null
  • seo_descriptionstring · or null
  • template_suffixstring · or null

    An alternate template: news renders with templates/blog.news.json.

Returns

200 Saved.

Errors

  • 404not_foundNo such blog.
  • 409Handle taken.
  • 412precondition_failedChanged by someone else since the given version.
  • 422validation_failedValidation failed.