Skip to main content

Create a new census

Create a new census on the backend side. The census is still unpublished until publish is called.

To create the census it require a Bearer token created on the user side using a UUID. This token should we stored for the user to perform operations to this census such add participants or publish.

It return a new random censusID (a random 32 bytes hex string), which are used (along with the Bearer token) to add participant keys to the census. Once the census is published no more keys can be added.

To use a census on an election, it must be published.

  • Available types are: weighted and zkindexed
  • Require header Bearer token created user side
Path Parameters
  • type string required

    Possible values: [weighted, zkweighted, csp]

    Census type

Responses

OK


Schema
  • censusId string
Loading...

Resources

Guides
Soon

Tutorials
Soon

Copyright © 2024 Vocdoni, Inc. All rights reserved.