Agora Docs
API

SocietyElection

10 endpoint del gruppo SocietyElection.

MetodoPathDescrizioneRischioSenza token
GET/society-electionsLists / queries SocietyElection. Filterable via where (SocietyElectionQueryDto). Query options: token, fields, include, limit, sort.readno
POST/society-electionsCreates a new SocietyElection. Accepts fields: year, name, description, data, status, candidate_start, candidate_end, candidate_form, candidate_requirements, candidate_result_sorting, vote_start, vote_end, vote_requirements, vote_min, vote_max, result.createno
GET/society-elections/countCounts SocietyElection. Filterable via where (SocietyElectionQueryDto).readno
GET/society-elections/{election}Fetches a single SocietyElection (scoped by election).readno
PATCH/society-elections/{election}Updates a single SocietyElection (scoped by election). Accepts fields: year, name, description, data, status, candidate_start, candidate_end, candidate_form, candidate_requirements, candidate_result_sorting, vote_start, vote_end, vote_requirements, vote_min, vote_max, result.mutateno
DELETE/society-elections/{election}Deletes a single SocietyElection (scoped by election).destructiveno
GET/society-elections/{election}/votes/statusstatus SocietyElection (scoped by election).readno
POST/society-elections/{election}/votes/votevote SocietyElection (scoped by election). Vote to election Accepts fields: votes.createno
GET/society-elections/{election}/votes/countCounts SocietyElection (scoped by election).readno
POST/society-elections/{election}/votes/resultsresults SocietyElection (scoped by election).readno

Questo articolo ti è stato utile?