unPublishPoll

abstract suspend fun unPublishPoll(pollId: String): RainbowResult<Unit>

Unpublish a poll, canceling the votes already made.

This API allows an organizer to move back a poll from the published state to the draft state. Once unpublished, all the votes that were already made are lost and the poll is no more accessible to members of the room. A poll that has been unpublished can be modified again, as if it was just created. This poll will need to be published again to be available for the members of the room.

Return

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

Parameters

pollId

The unique identifier of the poll.