Overview
This node integrates with the Vote Kit API to manage voting polls and their options. It supports operations such as creating, updating, deleting votes and options, retrieving vote details, and listing votes. The "Delete Option" operation specifically allows users to remove an option from a given poll.
Common scenarios for this node include:
- Managing interactive polls in applications or websites.
- Automating poll administration workflows.
- Integrating voting functionality into larger automation processes.
For example, you can use this node to delete an outdated or incorrect option from a poll automatically when certain conditions are met.
Properties
| Name | Meaning |
|---|---|
| Vote ID | The unique identifier of the poll (vote) from which the option will be deleted. |
| Option ID | The unique identifier of the option to be deleted from the specified poll. |
Output
The output is a JSON object representing the response from the Vote Kit API after attempting to delete the option. Typically, this will confirm whether the deletion was successful or provide error information if it failed.
No binary data is output by this operation.
Dependencies
- Requires an API key credential to authenticate requests to the Vote Kit API.
- The node uses HTTP requests to endpoints under
/api/poll-options/and/api/admin/poll/. - Proper configuration of the API authentication credential in n8n is necessary.
Troubleshooting
Common issues:
- Invalid or missing Vote ID or Option ID parameters will cause the API request to fail.
- Insufficient permissions or invalid API credentials may result in authorization errors.
- Attempting to delete an option that does not exist or has already been deleted will likely return an error.
Error messages:
- Errors returned from the API typically include a message describing the problem (e.g., "Option not found").
- If the node throws an error about missing required parameters, ensure that both Vote ID and Option ID are provided and correctly formatted.
Resolution tips:
- Double-check the IDs used for correctness.
- Verify that the API key credential is valid and has sufficient permissions.
- Use the "Get Vote" operation to list current options and confirm the Option ID before deletion.
Links and References
- Vote Kit API Documentation (Note: Replace with actual URL if available)
- n8n documentation on HTTP Request Node for understanding API calls.