Edits a wall post or comment.

This method requires the following permissions: wall.

Parameters

post_id
integer

The identifier of the post to be updated.

message
string

The text of the post. Required if there are no attachments. This parameter supports formatted text, the format is determined by the text_format parameter.

text_format
enum

The format of the post text passed in message. By default, original format in which this post was initially created is used.

Possible values: markdown, html, plain.

attachments
array of objects

JSON array representing the media attachments to be added to this post. See the separate page for the object description. Required if there is no message.

content_warning
string

If this is not empty, make the content of the post hidden by default, requiring a click to reveal. This text will be shown instead of the content.

Result

The identifier of the edited post.

Errors

Global errors may occur when calling this method.