Time Tracking Webhooks
Die Time Tracking-Ressource sendet Webhooks für folgende Ereignisse:
Created
Wird ausgelöst, wenn ein neuer Time Track Entry erstellt wird.
Event-Name: time_track.created
Payload:
json
{
"event": "time_track.created",
"data": {
"id": 142,
"company_id": 1,
"user_id": 1,
"project_id": 5,
"invoice_id": null,
"task_id": 12,
"description": "Implemented authentication feature",
"date": "2024-01-26",
"start": "09:00",
"end": "17:30",
"hours": 8,
"minutes": 30,
"hourly_rate": 120.00,
"status": "open",
"billable": true,
"total_value": 1020.00,
"readable_time": "08:30",
"project": null,
"task": null,
"user": null,
"created_at": "2024-01-26T10:00:00.000000Z",
"updated_at": "2024-01-26T10:00:00.000000Z"
},
"timestamp": 1706263200,
"webhook_id": 1
}Updated
Wird ausgelöst, wenn ein Time Track Entry aktualisiert wird.
Event-Name: time_track.updated
Payload:
json
{
"event": "time_track.updated",
"data": {
"id": 142,
"company_id": 1,
"user_id": 1,
"project_id": 5,
"invoice_id": 25,
"task_id": 12,
"description": "Implemented authentication feature with OAuth2",
"date": "2024-01-26",
"start": "09:00",
"end": "17:30",
"hours": 8,
"minutes": 30,
"hourly_rate": 120.00,
"status": "invoiced",
"billable": true,
"total_value": 1020.00,
"readable_time": "08:30",
"project": null,
"task": null,
"user": null,
"created_at": "2024-01-26T10:00:00.000000Z",
"updated_at": "2024-01-26T15:30:00.000000Z"
},
"timestamp": 1706282400,
"webhook_id": 2
}Deleted
Wird ausgelöst, wenn ein Time Track Entry gelöscht wird.
Event-Name: time_track.deleted
Payload:
json
{
"event": "time_track.deleted",
"data": {
"id": 143,
"company_id": 1,
"user_id": 1,
"project_id": 5,
"invoice_id": null,
"task_id": null,
"description": "Internal meeting",
"date": "2024-01-25",
"start": "14:00",
"end": "15:30",
"hours": 1,
"minutes": 30,
"hourly_rate": 120.00,
"status": "open",
"billable": false,
"total_value": 180.00,
"readable_time": "01:30",
"project": null,
"task": null,
"user": null,
"created_at": "2024-01-25T14:00:00.000000Z",
"updated_at": "2024-01-25T14:00:00.000000Z"
},
"timestamp": 1706284800,
"webhook_id": 3
}