Skip to content

WordPress - Update Post

This module allows updating existing posts or articles in WordPress. Only the specified fields are modified, leaving the rest unchanged. Supports changing title, content, status, categories, and featured image.

FieldDescriptionExample
urlWordPress site base URLhttps://my-site.com
usernameWordPress usernameadmin
application_passwordApplication password generated in WordPressxxxx xxxx xxxx xxxx
FieldTypeRequiredDescription
credentials_idcredentialsYesWordPress credential
post_idtextYesPost ID to update
titletextNoNew title (empty = no change)
contenttextareaNoNew HTML content
statusselectNoNew status: draft, publish, pending, private
categoriestextNoNew categories (IDs separated by comma)
featured_mediatextNoNew featured image ID
{
"success": true,
"post_id": 123,
"post": { "id": 123, "title": { "rendered": "Updated Title" }, "status": "publish" },
"message": "Post 123 updated"
}
{
"post_id": "123",
"status": "publish"
}
{
"post_id": "123",
"title": "New Post Title",
"content": "<p>Updated content with new information...</p>"
}
{
"post_id": "123",
"categories": "5,12",
"featured_media": "789"
}
  • Only the specified fields are updated; the rest remain unchanged
  • The post ID supports variables with {{id}} syntax
  • Categories are completely replaced when updated (not appended)
  • To change the featured image, you need the media ID
  • WordpressGetPosts - Get posts to identify which to update
  • WordpressCreatePost - Create a new post
  • WordpressDeletePost - Delete a post
  • WordpressUploadMedia - Upload new featured image
  • WordpressGetCategories - Get category IDs