approve_or_disapprove_proposal

@mount("votes.approve_or_disapprove_proposal") operation approve_or_disapprove_proposal(proposal_id: rowid, is_approve: boolean)

Approves or disapproves a specific proposal based on the citizen's decision.

Parameters

proposal_id
  • The ID of the proposal to be approved or disapproved.

is_approve
  • A boolean indicating whether the proposal is approved (true) or disapproved (false).

Throws

UnauthorizedError
  • If the requester does not have necessary privileges.

ProposalNotFoundError
  • If the proposal with the given proposal_id does not exist.

InvalidProposalStateError
  • If the proposal cannot be approved or disapproved based on its current state.

VerificationError
  • If there is an issue with the proposal's verification status after approval or disapproval.