Kimai icon

Kimai

Interact with Kimai time-tracking API

Timesheet → Stop

AI-generated

Summary

Stops an active timesheet by sending a PATCH request to the Kimai API.

Inputs

  • id (required) — The ID of the timesheet to stop.
  • requestOptions — Configuration for HTTP requests, including batching, proxy, and timeout.

Output shape

The updated timesheet record from the API.

The operation returns the updated timesheet data. If the timesheet is not active, the API typically returns an error or no change, depending on the specific Kimai configuration.

Examples

Example 1: Stop an active timesheet manually

Configure the node with the specific Timesheet ID. The node will send a PATCH request to /api/timesheets/{id}/stop.

Example 2: Stop multiple timesheets via an If-None-Match workflow trigger

Use an If-None-Match trigger to fetch timesheets modified after a certain date, then pass the IDs to this node to stop them in batches.

Discussion