Skip to content

Commit

Permalink
Document setProcessStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWilliams2 committed Dec 17, 2021
1 parent 9e216ef commit edfbe2d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/integration/vaas-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,33 @@ curl -X POST -H "Authorization: Bearer <integrator-key>" https://server/v1/priv/
```
</details>

### Set an election status
Generates a Merkle Tree with the given current census keys and generates a voting process with the given metadata.
<details>
<summary>Example</summary>

#### Request
```bash
curl -X PUT -H "Authorization: Bearer <integrator-key>" https://server/v1/priv/elections/<electionId>/ready
curl -X PUT -H "Authorization: Bearer <integrator-key>" https://server/v1/priv/elections/<electionId>/ended
curl -X PUT -H "Authorization: Bearer <integrator-key>" https://server/v1/priv/elections/<electionId>/canceled
curl -X PUT -H "Authorization: Bearer <integrator-key>" https://server/v1/priv/elections/<electionId>/paused
curl -X PUT -H "Authorization: Bearer <integrator-key>" https://server/v1/priv/elections/<electionId>/results
```

#### HTTP 200
```json
// empty response
```

#### HTTP 400
```json
{
"error": "Message goes here"
}
```
</details>

### List elections (filtered)
Allows unrestricted listing, paging and filtering for the integrator backend to display all info to organization admins.
<details>
Expand Down

0 comments on commit edfbe2d

Please sign in to comment.