Create a blog
POST
/ admin/ v1/ stores/ {store_id}/ blogs- content:write
- Idempotency-Key supported
Create a blog.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
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
201 Created.
Errors
- 403
forbiddenMissing permission. - 409Handle taken (
handle_taken), or 50 blogs already (blog_limit). - 422
validation_failedValidation failed.