Developers » API methods » Polls » polls.create
Creates polls that can be attached to the users' or communities' posts.
This method can be called:
Access rights required: wall.
questionquestion text
is_anonymous1 anonymous poll, participants list is hidden;
0 public poll, participants list is available;
Default value is 0.
flag, either 1 or 0
is_multiple1 to create a poll with a multiple choice.
flag, either 1 or 0
end_datedate when the poll should be closed in Unixtime.
positive number, minimum value 1619793422
owner_idIf a poll will be added to a communty it is required to send a negative group identifier. Current user by default.
int (number), current user id is used by default
int (number)
add_answersavailable answers list, for example:

There can be from 1 to 10 answers.
JSON data
photo_idphoto ID for the snippet.
positive number
background_idbackground ID for the snippet.
flag, either 1 or 0
If executed successfully, a poll object is returned.
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
App object has new values in type field:
  • app social app;
  • game game;
  • site third-party website;
  • standalone standalone app;
  • vk_app VK App
  • community_app community application;
  • html5_game HTML5 game.
is_html5_app field will not be returned.

messages.getConversationMembers method can return new 917 error.

Polls API changes: