Skip to content

Archive task

Endpoint

DELETE /organizations/{org_id}/tasks/{task_id}

This endpoint soft-deletes (archives) a standalone one-off task. The task won’t appear in default views, but its data is preserved. You can restore it later with PUT /organizations/{org_id}/tasks/{task_id}/restore.

Request

Replace {org_id} with your Organization ID and {task_id} with the task ID to archive.

Headers

  • Authorization: Bearer {your_access_token}
  • Accept: application/json
  • X-Tallyfy-Client: APIClient

Body

No request body is needed.

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const taskId = 'TASK_ID_TO_ARCHIVE';
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/tasks/${taskId}`;
const headers = new Headers();
headers.append('Authorization', `Bearer ${accessToken}`);
headers.append('Accept', 'application/json');
headers.append('X-Tallyfy-Client', 'APIClient');
fetch(apiUrl, {
method: 'DELETE',
headers: headers
})
.then(response => {
if (response.status === 204) {
console.log(`Archived task ${taskId}. Status: 204 No Content`);
return null;
} else {
return response.json()
.catch(() => response.text())
.then(errData => {
console.error(`Failed to archive task ${taskId}. Status: ${response.status}`, errData);
throw new Error(`HTTP error! status: ${response.status}`);
});
}
})
.catch(error => {
console.error(`Error archiving task ${taskId}:`, error.message);
});

Response

A successful request returns a 204 No Content status with an empty response body. The task is soft-deleted — its deleted_at timestamp gets set, hiding it from default views while keeping all data intact.

Tasks > Delete task

Tallyfy’s API lets you permanently delete a standalone one-off task along with all its form fields and captured values by sending a DELETE request to the task’s endpoint which returns a 204 No Content response on success and cannot be undone.

Processes > Archive process

Tallyfy’s API lets you soft-delete (archive) a running process via a DELETE request so it disappears from default views while preserving all tasks and data intact and can be fully restored later using the activate endpoint.

Templates > Archive or delete template

Tallyfy’s API supports removing templates through a two-step process: first archiving (soft delete) via a DELETE request to the checklist endpoint which hides the template while preserving data and allowing restoration and then permanently deleting it via a second DELETE request with an extra /delete path segment which irreversibly removes all associated data and requires admin permissions.

Processes > Delete process

Tallyfy’s API lets admins permanently and irreversibly delete an already-archived process run along with all its associated tasks and data by sending a DELETE request to the /runs/[run_id]/delete endpoint with code samples provided in six languages.