API Methods: groups.editPost

Description

Edits or creates a group post


Authentication

This method requires authentication with 'write' permission.

API Version

Version 1&2

Required parameters

  • group_id :
    the id number of the group. The list of group ids is available from the groups.getList call.

Optional parameters

  • thread_id :
    the id number of the thread to which this post belongs. If this is not included, a new thread is started. The list of thread ids is available from the groups.getPosts call.
  • post_id :
    the id number of the post. If this is included, the call will edit an existing post rather than create a new one. The list of post ids is available from the groups.getPosts call.
  • subject :
    the subject of the post
  • body :
    the body of the post

Example response

<?xml version="1.0"?>
<response status="ok" time="Wed, 30 Apr 2008 15:58:29 -0500">
    <group_posts count="1">
        <group_post>
            <post_id>6</post_id>
        </group_post>
    </group_posts>
</response>