Skip to content

Archive process

Endpoint

DELETE /organizations/{org_id}/runs/{run_id}

This endpoint archives a specific Tallyfy process instance (run). Archiving hides the process from default views while retaining all data for future restoration.

Request

Replace {org_id} with your Organization ID and {run_id} with the ID of the process run to archive.

Headers

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

Body

No request body is needed for this DELETE request.

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const runId = 'PROCESS_RUN_ID_TO_ARCHIVE';
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/runs/${runId}`;
const headers = new Headers();
headers.append('Authorization', `Bearer ${accessToken}`);
headers.append('Accept', 'application/json');
headers.append('X-Tallyfy-Client', 'APIClient');
fetch(apiUrl, {
method: 'DELETE', // DELETE method archives the process run
headers: headers
})
.then(response => {
return response.json().then(data => { // Attempt to parse JSON regardless of status
if (!response.ok) { // Expect 200 OK on success
console.error(`Failed to archive process ${runId}:`, data);
throw new Error(`HTTP error! status: ${response.status}`);
}
console.log(`Successfully archived process ${runId}. Status: ${response.status}`);
return data; // Archive usually returns the updated process data
});
})
.then(data => {
console.log('Archived process details:');
console.log(JSON.stringify(data, null, 2));
})
.catch(error => {
console.error(`Error archiving process ${runId}:`, error.message);
});

Response

A successful request returns a 200 OK status code. The response body contains the details of the archived Tallyfy process run, including an archived_at timestamp and a status of archived.

{
"data": {
"id": "PROCESS_RUN_ID_TO_ARCHIVE",
"name": "Old Completed Project",
"status": "archived", // Status reflects archive
// ... other process properties ...
"archived_at": "2024-05-22T10:00:00Z" // Timestamp indicates archival
}
}

If the process run ID is not found or you lack permission, a 404 or 403 error will be returned.


Processes > Delete process

The DELETE endpoint permanently removes a process run instance and its associated data including tasks comments and form values with no option for recovery.

Tasks > Archive task

A DELETE endpoint that archives standalone tasks by hiding them from default views while preserving data for potential future restoration through authenticated API requests and returns 200 or 204 status codes upon success.

Processes > Activate process

A PUT endpoint restores previously archived process instances by removing the archived timestamp and updating the status to make them active again in the system.

Tags > Archive tag

A DELETE endpoint that enables archiving of organization tags by making them hidden while maintaining their data with authentication headers and code examples in multiple programming languages.