updatePoll

abstract suspend fun updatePoll(poll: Poll): RainbowResult<Unit>

Update a Poll. The id in the poll needs to be one of an existing poll.

This API allows an organizer to modify the draft of an existing poll in a Room. Once the poll is published and accessible to all members of the room, it cannot be modified anymore. In such case, it is required tu unpublish the poll, removing current votes and reverting it to its draft status.

Return

A RainbowResult indicating success or failure. In case of failure, the RainbowResult will contain error details.

Parameters

poll

The Poll to update