This admin endpoint performs a partial update of the election configuration. You can update any combination of the vote theme, the maximum number of voters, and the list of candidates — omit any field you do not want to change. The response always returns the full updated configuration object. ADocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Crypto-Project-ENSTA/front-end/llms.txt
Use this file to discover all available pages before exploring further.
GET request to the same path (/config/voting-system-config) retrieves the current configuration without modification.
Request body
All fields are optional. Include only the fields you want to update.The election topic or name displayed to voters (e.g.
"Best Framework 2025"). Must be a non-empty string.The maximum number of voters permitted to register. Must be a positive integer (minimum
1).The list of candidate names voters can choose from. Must contain at least two non-empty strings.
Response fields
The endpoint returns the complete, updated configuration object.The current election topic or name.
The maximum number of voters permitted to register.
The full list of candidate names for this election.
Validation rules
| Field | Constraint |
|---|---|
vote_theme | Non-empty string |
num_voters | Integer, minimum 1 |
choices | Array of at least 2 non-empty strings |