Skip to content

Commit ef15f63

Browse files
committed
Document setProcessStatus
1 parent edc2752 commit ef15f63

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/integration/vaas-api.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff 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)
376403
Allows unrestricted listing, paging and filtering for the integrator backend to display all info to organization admins.
377404
<details>

0 commit comments

Comments
 (0)