polls
polls.edit
Edits created polls
To call this method, you can use:
• user access token obtained in the standalone app through Implicit Flow and user access token obtained in VK Mini Apps through a VKWebAppGetAuthToken event (access right required: wall — this is issued in exceptional cases by a request to support at devsupport@corp.vk.com)
Parameters
owner_id
integer
poll owner id
poll_id
positive
edited poll's id
Required parameter
question
string
new question text
add_answers
text
answers list, for example:
edit_answers
text
object containing answers that need to be edited; key – answer id, value – new answer text. Example: {"382967099":"option1", "382967103":"option2"}
delete_answers
text
list of answer ids to be deleted. For example:
end_date
positive
date when the poll should be closed in Unixtime.
Result
If successfully executed, returns 1.
Error codes
Common errors may occur during execution