Vote Kit icon

Vote Kit

Consume Vote Kit API

Update Option

AI-generated

Overview

This node operation updates an existing voting option within a specified poll using the Vote Kit API. It is useful in scenarios where you need to modify the title of a voting option after it has been created, such as correcting a typo or updating the option to reflect new information.

Use Case Examples

  1. Updating the title of a poll option to correct a spelling mistake.
  2. Changing the description of an option to better clarify its meaning to voters.

Properties

Name Meaning
Title The new title of the vote option to be updated.
Vote ID The unique identifier of the poll to which the option belongs.
Option ID The unique identifier of the option to be updated within the poll.

Output

JSON

  • _id - The unique identifier of the updated option or poll entity.
  • title - The updated title of the option.
  • pollId - The identifier of the poll to which the option belongs.

Dependencies

  • Vote Kit API accessed via an API key credential

Troubleshooting

  • Ensure that the Vote ID and Option ID are correctly provided and correspond to existing entities in the Vote Kit system.
  • Common errors include authorization failures if the API key credential is missing or invalid.
  • Network errors or API endpoint changes may cause request failures; verify API availability and endpoint URLs.

Links

Discussion