Skip to main content
Version: v3

Update Blog Post

PUT 

/blogs/posts/:postId

The "Update Blog Post" API updates an existing blog post for any given blog site.

Request

Version stringrequired

API Version

Available optionsv3
postId stringrequired

Identifier of the blog post to fetch

application/json

Bodyrequired

    titlestring

    Title of the blog post

    locationIdstringrequired

    Sub-account (location) identifier the blog post belongs to

    blogIdstringrequired

    Identifier of the blog site the post belongs to

    imageUrlstring

    Cover image URL for the blog post

    descriptionstring

    Short description or excerpt for the blog post

    rawHTMLstringrequired

    Full HTML body of the blog post

    statusstringrequired

    Publication status of the blog post

    Available optionsDRAFTPUBLISHEDSCHEDULEDARCHIVEDDELETED
    wordCountnumber

    Total word count of the blog post body

    readTimeInMinutesnumber

    Estimated read time of the blog post, in minutes

    archivedboolean

    Whether the blog post is archived

    imageAltTextstring

    Alt text for the cover image

    currentVersionstring

    Identifier of the current version of the blog post

    metaDataobject

    Metadata about actors that performed lifecycle actions on the post

    categoriesstring[]

    Identifiers of categories the blog post belongs to

    tagsstring[]

    Tags applied to the blog post

    authorstring

    Identifier of the author of the blog post

    urlSlugstring

    URL-safe slug used in the blog post path

    canonicalLinkstring

    Canonical link override for SEO

    importIdstring

    Identifier of the import record this post was created from

    typestring

    Post type marker (e.g., "preview")

    publishedAtstring

    Timestamp when the post was (or will be) published

    scheduledAtstring<date-time>

    Timestamp when the post is scheduled to publish

    externalFontsstring[]

    External fonts referenced by the blog post body

    originIdstring

    External identifier when the post was imported from another system

    tocStylestring

    Table-of-contents style preference for the post

    isAutoSaveboolean

    Whether this update is an automatic save from the editor

    conversationHistoryPathstring

    Storage path of the conversation history for AI-assisted edits

    assistModeDataobject

    Assist-mode configuration captured at the time of generation

    isAiGeneratedboolean

    Whether the blog post was generated using AI assistance

    isAIGeneratedbooleandeprecated

    Deprecated. Use isAiGenerated instead. Kept for backwards compatibility.

application/json

Successful response

Schema
    updatedBlogPostobjectrequired

    Object containing response data of blog post update