Delete a firm task
DELETE
/firm-partners/firm/tasks/{uuid}Deletes a firm task, with its attachments, tags and recurrence.
The task stops appearing in lists and returns 404 afterwards. Its attachments, tags and recurring schedule are removed and cannot be recovered through the API.
HMAC signature only
Path parameters
uuiduuidrequiredFirm task UUID.
Responses
200The task was deleted.400The task belongs to a closed accounting period.401Missing signing headers, an invalid HMAC signature, or a timestamp more than 5 minutes off. Troubleshoot403The API key is inactive, its scope does not cover this route, or it is limited to selected client workspaces and the route is firm-wide. Troubleshoot404No task with this UUID belongs to the firm.429Rate limit exceeded (100 requests per minute per firm user of each app, or 10,000 per minute per app). TroubleshootDELETE
https://api.getcount.com/firm-partners/firm/tasks/{uuid}Request
import crypto from 'node:crypto';
const BASE_URL = 'https://api.getcount.com';
const CLIENT_ID = process.env.COUNT_CLIENT_ID;
const CLIENT_SECRET = process.env.COUNT_CLIENT_SECRET;
const method = 'DELETE';
const signingPath = '/firm/tasks/3f4a5b6c-7d8e-4f9a-8b0c-1d2e3f4a5b6c';
const timestamp = Math.floor(Date.now() / 1000).toString();
const bodyString = '';
const bodyHash = '';
const baseString = `${method}:${signingPath}:${timestamp}:${bodyHash}`;
const signature = crypto.createHmac('sha256', CLIENT_SECRET).update(baseString).digest('hex');
const response = await fetch(`${BASE_URL}/firm-partners/firm/tasks/3f4a5b6c-7d8e-4f9a-8b0c-1d2e3f4a5b6c`, {
method,
headers: {
'x-client-id': CLIENT_ID,
'x-timestamp': timestamp,
'x-signature': signature,
},
});
console.log(await response.json());Response · 200
{
"status": "success",
"message": "Firm task deleted successfully",
"data": null
}