File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -372,6 +372,33 @@ curl -X POST -H "Authorization: Bearer <integrator-key>" https://server/v1/priv/
372372```
373373</details >
374374
375+ ### Set an election status
376+ Generates a Merkle Tree with the given current census keys and generates a voting process with the given metadata.
377+ <details >
378+ <summary >Example</summary >
379+
380+ #### Request
381+ ``` bash
382+ curl -X PUT -H " Authorization: Bearer <integrator-key>" https://server/v1/priv/elections/< electionId> /ready
383+ curl -X PUT -H " Authorization: Bearer <integrator-key>" https://server/v1/priv/elections/< electionId> /ended
384+ curl -X PUT -H " Authorization: Bearer <integrator-key>" https://server/v1/priv/elections/< electionId> /canceled
385+ curl -X PUT -H " Authorization: Bearer <integrator-key>" https://server/v1/priv/elections/< electionId> /paused
386+ curl -X PUT -H " Authorization: Bearer <integrator-key>" https://server/v1/priv/elections/< electionId> /results
387+ ```
388+
389+ #### HTTP 200
390+ ``` json
391+ // empty response
392+ ```
393+
394+ #### HTTP 400
395+ ``` json
396+ {
397+ "error" : " Message goes here"
398+ }
399+ ```
400+ </details >
401+
375402### List elections (filtered)
376403Allows unrestricted listing, paging and filtering for the integrator backend to display all info to organization admins.
377404<details >
You can’t perform that action at this time.
0 commit comments