renameOption()
renameOption(optionId: number, name: string): Promise<{ id: number; name: string; }>
Rename a poll option.
Parameters:
optionId
(number): The ID of the option to be renamed.name
(string): The new name for the option.
Returns:
A
Promise
resolving to an object containing the ID and the new name of the renamed option.
Example:
Last updated