Withdraw Proposal
To use the API to withdraw any proposal that the user has created, you will need to use the following API request.
mutation withdrawProposal($componentId: ID!, $proposalId: ID!){
component(id: $componentId) {
...on ProposalsMutation{
proposal(id: $proposalId) {
withdraw(input: {}) {
id
state
withdrawnAt
}
}
}
}
}
Example of submitted variables
{
"componentId": "9",
"proposalId": "2"
}