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_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.blog_idstringrequiredThe blog's ID, like
blog_01k8qs5s….
Headers
If-Matchstring · or nullThe blog's ETag (
"v{version}")shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
titlestringrequiredhandlestringDerived from the title when empty on create; kept when empty on update. A new handle redirects the blog's old paths.
seo_titlestring · or nullseo_descriptionstring · or nulltemplate_suffixstring · or nullAn alternate template:
newsrenders withtemplates/blog.news.json.
Returns
200 Saved.
Errors
- 404
not_foundNo such blog. - 409Handle taken.
- 412
precondition_failedChanged by someone else since the given version. - 422
validation_failedValidation failed.