wall

wall.edit

The translation was generated automatically and may contain mistakes

After updating methods 4 June 2026 images of non-standard sizes in the carousel are Framed automatically. To set your values, use the parameter photo_attachments_crop .

details

Editing the tape on the wall.

Restrictions on published content:

  • You can add no more than 10 media to the post (photos, videos).
  • You can add no more than 1 music track or 1 playlist/album to the post*
  • You can’t add music to a post if it has a video.
  • Music can be added if there is at least one photo.
  • One file may be added.
To call this method, you can use:
• user access token obtained in the standalone app through Implicit Flow (access right required: wall — this is issued in exceptional cases by a request to support at devsupport@corp.vk.com)

Parameters

owner_id

integer

The identity of the user or community on whose wall the record is located.

Note the community ID in the parameter owner_id It is necessary to indicate the sign "minus" - for example, owner_id = -1 corresponds to the community identifier VKontakte API (club1)

post_id

positive

The record ID on the wall.

Required parameter

friends_only

checkbox

1 The recording will only be available to friends.. 0 to all users. The parameter is only taken into account when editing a deferred record.

message

text

Text of the message (it is mandatory if the parameter is not set attachments ).

attachments

string

List of objects attached to the record and separated by the symbol " , ». Field attachments It is presented in the format:

<type><owner_id>_<media_id>,<type><owner_id>_<media_id>
  • type Type of media investment:
    • photo - a photograph.
    • video - video.
    • audio - audiotape.
    • doc - file.
    • poll - a survey.
    • audio_playlist Playlist with audio.

<owner_id> - ID of the owner of the media application; <media_id> media application identifier.

For example:

photo100172_166443618,photo66748_265827614

Also in the field attachments There may be a link to an external page that you want to place in the status, for example:

photo66748_265827614,http://habrahabr.ru

If you try to attach more than one link, an error will be returned.

A parameter is mandatory if no parameter is set message .

photo_attachments_crop

text

Fragmentation for the photo.

Format: JSON object array where each object consists of:

  • photo_id ID of the photo in the format {owner_id}_{media_id}
  • x Displacement to the left in pixels
  • y Displacement to the left in pixels
  • width width in pixels
  • height The height in pixels

Example:

[ { "photo_id": "11111111_23423421", "x": 10, "y": 10, "width": 300, "height": 300 } ]
services

string

List of services or sites to which you need to export the record, if the user has configured the appropriate option. For example, twitter , facebook . The parameter is only taken into account when editing a deferred record.

signed

checkbox

1 - a record posted on behalf of the community will have a signature added (the name of the user who posted the record), 0 No signature will be added. The parameter is taken into account only when editing a record on the community wall published on behalf of the group.

publish_date

positive

Date of publication of record in format unixtime . If the parameter is not specified, the delayed entry will be published. The parameter is only taken into account when editing a deferred record.

lat

string

The geographical latitude of the mark, given in degrees (from -90 to 90).

long

string

Geographical longitude of the mark, given in degrees (from -180 to 180).

place_id

positive

Identifier of the place where the user is marked.

mark_as_ads

checkbox

1 - the record posted on behalf of the community will be added the label "this is an advertisement", 0 - the label will not be added / remove the installed label. The label can be removed within five minutes after its installation. No more than five advertising entries may be published per day, of which no more than three are outside the VKontakte Exchange..

close_comments

checkbox

1 Comments to the recording are disabled. 0 Comments to the recording are included.

donut_paid_duration

integer

the period of time during which the record will be available to the Dons — paid subscribers of VK Donut. Possible values:

  • -1 exclusively for the Dons;
  • 86400 for one day;
  • 172800 for 2 days;
  • 172800 for 3 days;
  • 345600 for 4 days;
  • 432000 for 5 days;
  • 518400 for 6 days;
  • 604800 - for seven days.
poster_bkg_id

positive

Not used, marked for removal

poster_bkg_owner_id

integer

Not used, marked for removal

poster_bkg_access_hash

string

Not used, marked for removal

topic_id

positive

primary_attachments_mode

string

Defines the format for displaying attached media files. By default, they are placed in the form of a carousel, where the user can view them one by one as a slideshow. When setting the value grid Media files will be presented in a grid format where multiple media files are shown simultaneously.

Result

After successful completion, return post_id The ID of the edited post.

Error codes

224
Too many ads posts
225
Donut is disabled

Common errors may occur during execution