Delete attendance record
Deletes an attendance record for a specific date.
What happens:
- The attendance record for the specified date is permanently deleted
- This action cannot be undone
- Deleted records are marked with a deletion timestamp
Note: This endpoint is only available for employee accounts. Attendance tracking must be enabled in the workspace settings. You can only delete your own attendance records.
DELETE
/attendanceAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsondatestringrequiredDate of the attendance record to delete in ISO 8601 format (YYYY-MM-DD). The attendance record for this date will be permanently deleted.
Responses
200Attendance record deleted successfully
successbooleanrequiredOperation success flag
400Validation errors
errorsobjectShow propertiesHide properties
datestring[]messagestringstatusCodenumber401Unauthorized - Invalid or missing authentication token
403Not an employee or attendance not enabled in workspace
messagestringstatusCodenumberRequest
curl -X DELETE "https://leadtime.app/api/public/attendance" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"date": "2025-01-15"
}'const response = await fetch("https://leadtime.app/api/public/attendance", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"date": "2025-01-15"
})
});import requests
response = requests.delete(
"https://leadtime.app/api/public/attendance",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"date": "2025-01-15"
},
)Response
{
"success": true
}{
"errors": {
"date": [
"Date is required."
]
},
"message": "Bad Request",
"statusCode": 400
}Unauthorized - Invalid or missing authentication token
{
"message": "Forbidden",
"statusCode": 403
}