Skip to main content

Publish census

Register a census to the storage (IPFS in our case). After this, the census can't be edited.

You could provide the census Merkle root to specify census publication at specific snapshot. See censuses/{censusId}/participants

  • Requires Bearer token
  • The census is copied to a new census identified by its Merkle Root
  • The new census cannot be modified
  • The census is published to the storage provided (IPFS in our case)
  • The new census ID is returned and can be used for querying
  • If a censusID with the same root has been already published, the request will fail
  • If root is specified as path parameter, it publish the census at specific root (append the census to existing one).
Path Parameters
  • censusID string required

    Census id

Responses

It return published censusID and the ipfs uri where its uploaded


Schema
  • census object
  • censusID string
  • uri string
Loading...

Resources

Guides
Soon

Tutorials
Soon

Copyright © 2024 Vocdoni, Inc. All rights reserved.