Toggles the isCompleted status of a task. If completed, marks as pending. If pending, marks as completed.
cURL
curl --request POST \ --url https://znift.com/api/v1/tasks/{taskId}/toggle \ --header 'x-api-key: <api-key>'
{ "success": true }
API key with znift_ prefix. Create one in Profile > API Keys.
Task ID
Toggle task completion successful