board

board.addTopic

Creates a new topic on a community's discussion board.

To call this method, you can use:
• user access token obtained in the standalone app through Implicit Flow (access right required: groups — this is issued in exceptional cases by a request to support at devsupport@corp.vk.com)

Parameters

group_id

string

ID of the community that owns the discussion board.

Required parameter

title

string

Topic title.

Required parameter

text

string

Text of the first message.

from_group

checkbox

1 — to post the topic as by the community; 0 — to post the topic as by the user (by default).

attachments

string

List of media objects attached to the topic, in the following format:

'''<type><owner_id>_<media_id>,<type><owner_id>_<media_id>'''

— type of media object:

  • photo — photo;
  • video — video;
  • audio — audio;
  • doc — document.

<owner_id> — ID of the media owner. <media_id> — Media ID.

Example:

'''photo100172_166443618,photo66748_265827614'''

Required if text is not set.

Result

Returns the ID of the created topic.

Error codes

703
You need to enable 2FA for this action
13000
Content upload was denied due to active community strikes

Common errors may occur during execution