Archives a time entry for the specified employee (soft-delete). Required scope: w_time_tracking.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
This endpoint uses thew_time_trackingscope, which must be enabled through the Integrations section found within the Settings menu.
This endpoint supports both user tokens and account tokens.
The entry is archived (soft-deleted) rather than permanently removed. Returns 204 No Content on success.
Token behaviour
User tokens — can only archive time entries belonging to their own employee record.
Account tokens — can archive any employee's time entries within their account.
Active clock-in entries
Archiving an active clock-in entry (type Clock with no clock_out_time) that is newer than 5.5 minutes will automatically clear the employee's active clock.
Active clock-in entries older than 5.5 minutes cannot be archived and will return a 422 with code timeEntry.archivalTooLate.
Ergani clock entries
Ergani clock entries cannot be archived (returns 403).
Error responses
| Status | Code | Description |
|---|---|---|
| 403 | Missing w_time_tracking scope, attempting to archive another employee's entry (user tokens), or entry is an Ergani clock entry | |
| 404 | Time entry not found, not associated with the specified employee, or already archived | |
| 422 | timeEntry.archivalTooLate | Active clock-in entry is older than 5.5 minutes and cannot be archived |
204204 - No Content
