create_veto_for_proposal

@mount("votes.create_veto_for_proposal") operation create_veto_for_proposal(proposal_id: rowid, proposed_option_item_id: rowid)

Creates a veto for a specific proposal and option.

Parameters

proposal_id
  • The ID of the proposal for which the veto is being created.

proposed_option_item_id
  • The ID of the option being vetoed in the proposal.

Throws

UnauthorizedError
  • If the requester does not have necessary privileges.

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

VetoCreationError
  • If the veto cannot be created due to any logic or validation failure.