Skip to main content
POST
Add several voters to a private vote collection

Authorizations

Api-Token
string
header
required

Server-to-server authentication. Generate a token in the admin UI at Settings → Developers → API Access. Send the raw token in the Api-Token header — there is no Bearer prefix.

Tokens can be marked read-only at creation time, in which case the API rejects any non-GET request with 403 Forbidden.

Path Parameters

id
string
required

VoteCollection identifier

Body

application/json

The new VoteCollection resource

name
string
description
string | null
timezone
string | null
dateStart
string<date-time> | null
dateEnd
string<date-time> | null
dateModified
string<date-time> | null
isActive
boolean
default:true
hasPreliminaryResults
boolean | null
default:false
isGeneral
boolean | null
hideVotersList
boolean | null
default:false
isAnonymous
boolean | null
default:true

When true (the default and the historical behaviour), ballots are stored fully decoupled from voters: a VoteBox carries no voter reference and no VoteBoxAttribution row is ever written, so it is structurally impossible to tell who cast which ballot. When false, the collection is non-anonymous: each cast ballot is linked to its voter through a VoteBoxAttribution row so administrators can see who voted what.

unit
string<iri-reference> | null
Example:

"/api/v1/units/1"

event
string<iri-reference> | null
Example:

"/api/v1/events/1"

electorate
string | null

Null for the three classic electorates (event attendees, group, hand-picked voters); otherwise one of ELECTORATES.

electorateRequiresPaidFee
boolean
default:false

Whether a company or member must be paid through the vote's start date ("Active only") or counts whatever its fee status ("Any"). Read only for a vote with a rule electorate (hasRuleElectorate). Fixed once the vote is published.

Response

VoteCollection resource created

id
integer
read-only
name
string
description
string | null
owner
object
timezone
string | null
dateCreated
string<date-time>
read-only
dateStart
string<date-time> | null
dateEnd
string<date-time> | null
dateModified
string<date-time> | null
isActive
boolean
default:true
hasPreliminaryResults
boolean | null
default:false
isGeneral
boolean | null
isLocked
boolean | null
default:false
read-only
hideVotersList
boolean | null
default:false
isAnonymous
boolean | null
default:true

When true (the default and the historical behaviour), ballots are stored fully decoupled from voters: a VoteBox carries no voter reference and no VoteBoxAttribution row is ever written, so it is structurally impossible to tell who cast which ballot. When false, the collection is non-anonymous: each cast ballot is linked to its voter through a VoteBoxAttribution row so administrators can see who voted what.

isArchived
boolean | null
unit
object | null
event
object | null
electorate
string | null

Null for the three classic electorates (event attendees, group, hand-picked voters); otherwise one of ELECTORATES.

electorateFrozenAt
string<date-time> | null

When the electorate was copied into VoteUser rows. Set once, never cleared: from then on those rows are the electorate.

electorateRequiresPaidFee
boolean
default:false

Whether a company or member must be paid through the vote's start date ("Active only") or counts whatever its fee status ("Any"). Read only for a vote with a rule electorate (hasRuleElectorate). Fixed once the vote is published.

totalVoted
string | null
default:0
totalEligible
string | null
default:0
isOpen
string | null
read-only
isFuture
string | null
read-only
isEditable
boolean | null
hasVoted
boolean | null
default:false
isVoteEligible
boolean | null
default:false
status
string | null
read-only
hasAvailableResults
string | null
read-only
participationPercentage
isDraft
boolean | null
default:true