Vote Kit icon

Vote Kit

Consume Vote Kit API

Overview

This node integrates with the Vote Kit API to manage polls and their options. It supports creating, updating, deleting, retrieving, and listing votes (polls) as well as managing individual options within those polls. The "Create Option" operation specifically allows users to add a new voting option to an existing poll by specifying the option's title and the poll ID it belongs to.

Practical scenarios include:

  • Building interactive surveys or polls in applications.
  • Managing voting options dynamically for events or decision-making processes.
  • Automating poll creation and option management workflows.

Example: You can use this node to add a new choice to a live poll, enabling participants to vote on the newly added option without manual intervention.

Properties

Name Meaning
Title The title or name of the option to be created within the specified poll.
Vote ID The unique identifier of the poll to which the new option will be added. This is required.

Output

The node outputs JSON data representing the response from the Vote Kit API after creating the option. This typically includes details about the newly created option such as its ID, title, and associated poll ID.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate requests to the Vote Kit API.
  • The node uses HTTP requests to endpoints like /api/poll-options/create to perform operations.
  • Proper configuration of the API authentication credential in n8n is necessary.

Troubleshooting

  • Common issues:

    • Missing or invalid poll ID: The operation requires a valid poll ID; ensure it exists and is correctly provided.
    • Authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
    • Network or API endpoint errors: Check connectivity and that the Vote Kit API service is operational.
  • Error messages:

    • Errors returned from the API will be included in the node output if "Continue On Fail" is enabled.
    • Typical error messages might indicate missing parameters, unauthorized access, or resource not found.

To resolve errors:

  • Double-check all required input fields.
  • Confirm API credentials and permissions.
  • Review API documentation for any changes or additional requirements.

Links and References

Discussion