Projects Webhooks
Die Projects-Ressource sendet Webhooks für folgende Ereignisse:
Created
Wird ausgelöst, wenn ein neues Project erstellt wird.
Event-Name: project.created
Payload:
json
{
"event": "project.created",
"data": {
"id": 55,
"name": "Website Relaunch",
"notes": "Komplette Überarbeitung der Firmenwebsite inkl. neuem Design",
"archived": false,
"budget": 15000.00,
"user_id": 456,
"customer_id": 410,
"project_type": "fixedBudget",
"kanban_status": "To Do",
"start_date": "2024-01-15",
"end_date": "2024-03-31",
"formatted_start_date": "15.01.2024",
"formatted_end_date": "31.03.2024",
"hourly_rate": 150.00,
"entries_count": 0,
"invoices_count": 0,
"proposals_count": 0,
"tasks_count": 0,
"times_count": 0,
"budget_usage": {
"no_budget": false,
"billable_time_total": "00:00",
"non_billable_time_total": "00:00",
"billable_sum": "0.00",
"total_time": "00:00",
"hourly_rate": "150.00",
"total_sum_invoiced": "0.00",
"total_sum_open": "0.00",
"used_percentage": 0,
"used_chf": "0.00",
"total_budget": "15,000.00",
"remaining": "15,000.00",
"remaining_percentage": 100,
"used_string": "0.00 CHF / 15,000.00 CHF (0%)",
"billability": 0
},
"open_times": {
"readable": "00:00",
"sortable": 0
}
},
"timestamp": 1705327320,
"webhook_id": 1
}Updated
Wird ausgelöst, wenn ein Project aktualisiert wird.
Event-Name: project.updated
Payload:
json
{
"event": "project.updated",
"data": {
"id": 55,
"name": "Website Relaunch - Phase 2",
"notes": "Komplette Überarbeitung der Firmenwebsite inkl. neuem Design und CMS",
"archived": false,
"budget": 18000.00,
"user_id": 456,
"customer_id": 410,
"project_type": "fixedBudget",
"kanban_status": "In Progress",
"start_date": "2024-01-15",
"end_date": "2024-04-30",
"formatted_start_date": "15.01.2024",
"formatted_end_date": "30.04.2024",
"hourly_rate": 150.00,
"entries_count": 12,
"invoices_count": 2,
"proposals_count": 1,
"tasks_count": 8,
"times_count": 45,
"budget_usage": {
"no_budget": false,
"billable_time_total": "45:30",
"non_billable_time_total": "05:15",
"billable_sum": "6,825.00",
"total_time": "50:45",
"hourly_rate": "150.00",
"total_sum_invoiced": "5,000.00",
"total_sum_open": "1,825.00",
"used_percentage": 43.75,
"used_chf": "7,875.00",
"total_budget": "18,000.00",
"remaining": "10,125.00",
"remaining_percentage": 56.25,
"used_string": "7,875.00 CHF / 18,000.00 CHF (43.75%)",
"billability": 86.67
},
"open_times": {
"readable": "15:45",
"sortable": 945
}
},
"timestamp": 1705399800,
"webhook_id": 2
}Deleted
Wird ausgelöst, wenn ein Project gelöscht wird.
Event-Name: project.deleted
Payload:
json
{
"event": "project.deleted",
"data": {
"id": 56,
"name": "Mobile App Development",
"notes": null,
"archived": false,
"budget": null,
"user_id": 456,
"customer_id": 410,
"project_type": "byHour",
"kanban_status": null,
"start_date": null,
"end_date": null,
"formatted_start_date": null,
"formatted_end_date": null,
"hourly_rate": 175.00,
"entries_count": 0,
"invoices_count": 0,
"proposals_count": 0,
"tasks_count": 0,
"times_count": 0,
"budget_usage": {
"no_budget": true,
"billable_time_total": "00:00",
"non_billable_time_total": "00:00",
"billable_sum": "0.00",
"total_time": "00:00",
"hourly_rate": "175.00",
"total_sum_invoiced": "0.00",
"total_sum_open": "0.00",
"used_percentage": 0,
"used_chf": "0.00",
"total_budget": "0.00",
"remaining": "0.00",
"remaining_percentage": 0,
"used_string": "0.00 CHF",
"billability": 0
},
"open_times": {
"readable": "00:00",
"sortable": 0
}
},
"timestamp": 1705406400,
"webhook_id": 3
}