cURL
curl --request POST \ --url http://localhost:3000/api/v1/proposals/{id}/discard \ --header 'Content-Type: application/json' \ --cookie nut-session= \ --data ' { "revertChanges": false } '
{ "success": true, "data": {} }
Discard a proposal and optionally revert its changes
Session cookie authentication
Proposal ID
Whether to revert file changes
Proposal discarded