Skip to content

Create a blog

POST/admin/v1/stores/{store_id}/blogs
  • content:write
  • Idempotency-Key supported

Create a blog.

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.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • 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

201 Created.

Errors

  • 403forbiddenMissing permission.
  • 409Handle taken (handle_taken), or 50 blogs already (blog_limit).
  • 422validation_failedValidation failed.