API Methods: blogs.editPost



Description

Creates or edits a blog post.


Authentication

This method requires authentication with 'write' permission.

Required parameters

  • blog_id :
    the id of the blog containing the post. The list of blogs is available from the blogs.getList call.
  • subject :
    the subject of the blog post
  • body :
    the body of the blog post

Optional parameters

  • post_id :
    the id number of the blog post. If this parameter is included, the blog post will be edited.
  • allow_comments :
    this is a boolean value (1=true, 0=false) which determines if readers can post comments on this blog post
  • ss_key :
    the key of the community associated with the blog post. The list of communities is available from the communities.getList call.
  • interest_key :
    the key of a site interest associated with the blog post. The list of interests is available from the siteinterests.getList call.
  • subinterest_key :
    the key of a site sub-interest associated with the blog post. The list of interests is available from the siteinterests.getList call.

Example response

<?xml version="1.0"?>
<response status="ok" time="Fri, 18 Apr 2008 12:57:21 -0500">
    <blog_posts count="1">
        <blog_post>
            <blog_id>1</blog_id>
        </blog_post>
    </blog_posts>
</response>