delete_time_entry¶
Delete an existing time entry by its ID.
Summary¶
The delete_time_entry tool allows you to permanently remove a time entry from EARLY. This is useful for removing accidental entries or duplicates.
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
timeEntryId | string | Required | The unique ID of the time entry to delete. You can find this ID using get_time_entries. |
Behavior¶
Deletion Process¶
- Validation: Checks if
timeEntryIdis provided. - Authentication: Verifies API credentials.
- API Call: Sends a DELETE request to EARLY API.
- Response: Confirms successful deletion.
Examples¶
Delete Entry¶
Response:
Error Scenarios¶
| Error | Cause | Solution |
|---|---|---|
| "Time entry ID is required" | Missing timeEntryId | Provide the ID of the entry to delete |
| "Resource not found" | Invalid ID or already deleted | Verify ID with get_time_entries |