Tasks Webhooks
Die Tasks-Ressource sendet Webhooks für folgende Ereignisse:
Created
Wird ausgelöst, wenn ein neuer Task erstellt wird.
Event-Name: task.created
Payload:
json
{
"event": "task.created",
"data": {
"id": 42,
"company_id": 1,
"user_id": 1,
"project_id": 5,
"title": "Implement user authentication",
"description": "Set up OAuth2 authentication flow",
"status": "open",
"due": "2024-01-31",
"planned_hours": 8,
"formatted": {
"relative_due": "in 5 days",
"due": "31.01.2024",
"is_done": false
},
"total_time_tracked": "00:00",
"project": 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 Task aktualisiert wird.
Event-Name: task.updated
Payload:
json
{
"event": "task.updated",
"data": {
"id": 42,
"company_id": 1,
"user_id": 1,
"project_id": 5,
"title": "Implement user authentication",
"description": "Set up OAuth2 authentication flow with JWT tokens",
"status": "in-progress",
"due": "2024-01-31",
"planned_hours": 10,
"formatted": {
"relative_due": "in 3 days",
"due": "31.01.2024",
"is_done": false
},
"total_time_tracked": "04:30",
"project": null,
"created_at": "2024-01-26T10:00:00.000000Z",
"updated_at": "2024-01-28T14:30:00.000000Z"
},
"timestamp": 1706452200,
"webhook_id": 2
}Deleted
Wird ausgelöst, wenn ein Task gelöscht wird.
Event-Name: task.deleted
Payload:
json
{
"event": "task.deleted",
"data": {
"id": 43,
"company_id": 1,
"user_id": 1,
"project_id": 5,
"title": "Update documentation",
"description": "Update API documentation for new endpoints",
"status": "done",
"due": "2024-01-20",
"planned_hours": 3,
"formatted": {
"relative_due": "8 days ago",
"due": "20.01.2024",
"is_done": true
},
"total_time_tracked": "02:45",
"project": null,
"created_at": "2024-01-15T09:00:00.000000Z",
"updated_at": "2024-01-20T16:30:00.000000Z"
},
"timestamp": 1706455800,
"webhook_id": 3
}