Skip to main content

Freeze a specific election

PUT 

/elections/:electionId/freeze

Freezes the requested election if it is in a valid state. A valid state is:

  • The election must have at least one ballot paper.
  • Each ballot paper must have at least one section.
  • Each ballot paper section must have at least one candidate linked to it.
  • All candidates linked to the election must be linked to at least one ballot paper section. Note that freezing an election is an action that should be done with caution and after a careful review of the election configuration. After an election is frozen, the configuration of the election can not be changed anymore. You can not change the number of allowed voters.

After the election is frozen, the key pair for the election will be generated. The access tokens for your voters can be generated after that. Note that depending on the load of the system it will take some time until the generated keys are available. You will get a response quickly without the keys, but the keys will be generated in the background. If the keys are available, you will get them in your normal GET request for the election.

Request

Responses

OK. The request was successfully executed. The election is now frozen.