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