Use this endpoint to partially update the election configuration before the election opens. Because it follows HTTP PATCH semantics, you only send the fields you want to change — the server merges your updates into the existing record and leaves every other field untouched. You can update the voter count, the ballot question, the candidate list, or any combination of the three in a single request.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Crypto-Project-ENSTA/back-end/llms.txt
Use this file to discover all available pages before exploring further.
PATCH only modifies the fields you provide. Any field you omit in the request body remains unchanged in the database.
Request
PATCH /config/voting-system-config
Body
All fields are optional. Include only the fields you want to update.Update the total number of voters allowed in this election.
Update the ballot question or election topic shown to voters.
Replace the full list of candidate or option names. Provide all desired choices — this field overwrites the existing list.
Response
The endpoint returns the full updated configuration record.The configured total number of voters after the update.
The ballot question or election topic after the update.
The complete list of candidate or option names after the update.
HTTP status codes
| Code | Meaning |
|---|---|
200 | Configuration updated successfully. Returns the full updated config. |