---
updatedAt: 2026-04-16T11:50:02.000Z
agentTools:
  projectIndex: https://workable.readme.io/llms.txt
---

# /time-tracking/employees/:id/time-entries/:uuid

Archives a time entry for the specified employee (soft-delete). Required scope: `w_time_tracking`.

> 🚧 This endpoint uses the `w_time_tracking` scope, 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                                                           |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "account-root",
    "version": "3.16.2"
  },
  "servers": [
    {
      "url": "https://{subdomain}.workable.com/spi/v3",
      "variables": {
        "subdomain": {
          "default": "subdomain"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "",
        "x-default": "Bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/time-tracking/employees/{key}/time-entries/{uuid}": {
      "delete": {
        "summary": "/time-tracking/employees/:id/time-entries/:uuid",
        "description": "Archives a time entry (soft-delete). Returns 204 No Content on success. Supports both user and account tokens. Required scope: `w_time_tracking`.",
        "operationId": "time-tracking-archive-entry",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "description": "SPI key of the employee",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "description": "UUID of the time entry to archive",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "204 - No Content"
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"error\": \"Forbidden\"}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"error\": \"Not found\"}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "422": {
            "description": "422",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"error\": \"Active clock-in entry is older than 5.5 minutes\", \"code\": \"timeEntry.archivalTooLate\"}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```