Developers » API methods » Wall » wall.edit
Wallwall.edit
Edits a post on a user wall or community wall.
This method can be called with a user token received in Standalone-app via Implicit Flow. Access rights required: wall.
Parameters
owner_idUser ID or community ID. Use a negative value to designate a community ID.
int (number), current user id is used by default
post_idPost ID.
positive number, required parameter
friends_only(Applies only when editing a scheduled post.)
1 post will be available to friends only
0 post will be available to all users (default)
flag, either 1 or 0
message(Required if attachments is not set.) Text of the post.
string
attachments(Required if message is not set.) List of objects attached to the post, in the following format:
<type><owner_id>_<media_id>,<type><owner_id>_<media_id>

<type> Type of media attachment:
photo photo
video video
audio audio
doc document
<owner_id> ID of the media application owner.
<media_id> Media application ID.

Example:
photo100172_166443618,photo66748_265827614

May contain a link to an external page to include in the post. Example:
photo66748_265827614,http://habrahabr.ru
NOTE: If more than one link is being attached, an error is thrown.

list of comma-separated words
services(Applies only to a scheduled post.) List of services or websites where status will be updated, if the user has so requested. Sample values: twitter, facebook.
string
signed(Applies only to a post that was created "as community" on a community wall.)
1 to add the signature of the user who created the post
flag, either 1 or 0
publish_date(Applies only to a scheduled post.) Publication date (in Unix time). If used, posting will be delayed until the set time.
positive number
latGeographical latitude of the check-in, in degrees (from -90 to 90).
fraction
longGeographical longitude of the check-in, in degrees (from -180 to 180).
fraction
place_idID of the location where the user was tagged.
positive number
mark_as_ads
flag, either 1 or 0
close_comments
flag, either 1 or 0
donut_paid_duration
int (number), accessible for versions from 5.125
poster_bkg_id
positive number
poster_bkg_owner_id
int (number)
poster_bkg_access_hash
string
copyright
string
Result
Returns 1.
Errors
30This profile is private
224Too many ads posts
225Donut is disabled
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
5.100
Parameters limit, count and offset in method messages.deleteConversation are now obsolete.

If successful, the method wall.edit returns post_id an edited post identifier.
5.70
New chat_invite_user_by_link value has been supported in the action field of the message object.

update_time field has been added in the message object.

wall.post, wall.editAdsStealth, wall.edit, wall.repost methods can return a new error 224 too many ads posts.

New event message_edit has been added in Callback API.