Create a vote for a specific suggestion
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Unique vote identifier (auto-generated) |
| suggestionId | string | Yes | ID of the suggestion voted for |
| userId | string | Yes | ID of the user who voted |
| createdAt | string | Yes | Vote creation timestamp (ISO 8601) |
| updatedAt | string | Yes | Last update timestamp (ISO 8601) |
| Status Code | Description | Example Response |
|---|---|---|
| 400 | User already voted or missing data | {"error": "User has already voted on this suggestion"} |
| 401 | Unauthorized - Invalid API key | {"error": "Unauthorized"} |
| 404 | Suggestion or user not found | {"error": "Suggestion not found"} |
| 500 | Internal server error | {"error": "Failed to create vote"} |