Save blog post

ps_save_blog_post

Write · preview + approveBlock 1 · Content & SEODaily connectorNeeds the SmartBlog module

Writes a new blog post or edits an existing one.

Ask Claude

„Fix the meta descriptions of the 5 blog posts flagged by the audit.”

Example preview

Post 8 "How to choose garden lamps", language en. meta_description: empty -> 152 characters. meta_title: empty -> "How to choose garden lamps | Guide".

Technical details

Creates or updates a SmartBlog post: title, content, short description, meta title, meta description, categories, status (published or draft). Preview first, logged in the change history, revertible with ps_revert_change. ps_audit_seo points to it as the fix for blog posts. Appears only when the SmartBlog module is detected (ps_get_shop_info reports the blog module).

Parameters

Parameter names are not confirmed in module 0.3.0 yet and may change.

NameTypeRequiredDescription
post_idintegernoExisting post ID. Empty creates a new post.
titlestringnoPost title.
contentstring (HTML)noPost content.
excerptstringnoShort description.
meta_titlestringnoMeta title.
meta_descriptionstringnoMeta description.
category_idsarray of integernoBlog categories.
activebooleannoPublished or draft.
langstringwhen: shop has more than one active languageISO code of the language you write in. Required when the shop has more than one active language. Claude writes the content in this language.
shop_idintegernoShop ID in a multistore installation. Defaults to the shop in the connector address. IDs are listed by ps_get_shop_info.
confirmbooleannofalse (default) returns a preview and saves nothing. true executes, only after the user approved the preview, together with change_token.
change_tokenstringwhen: confirm=trueToken from the preview. Required with confirm=true. Valid 30 minutes, single use, bound to the previewed arguments and data state.

Limits

Requires SmartBlog. One language per call. Slug changes go through ps_change_url (SmartBlog slugs max 45 characters).

What you see before anything is saved

Claude first calls the tool without confirming it. The module returns a preview (current and new values) and a single-use token valid for 30 minutes. Claude shows you the preview and saves the change only after your yes.

Related tools

Last updated: 2026-10-03