const response = await fetch("https://algapsa.com/api/v1/time-entries", {
method: "POST",
headers: {
"X-API-Key": "$ALGA_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"work_item_type": "string",
"work_item_id": "string",
"user_id": "01HN2K7VRB9PQ3Y0000000000",
"started_at": "string",
"ended_at": "string",
"duration_minutes": 0,
"billable_minutes": 0,
"notes": "string"
})
});
const data = await response.json();