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
Unauthorized Error
If the requester does not have necessary privileges.
Proposal Not Found Error
If the proposal with the given
proposal_iddoes not exist.
Veto Creation Error
If the veto cannot be created due to any logic or validation failure.