Entitetsöversikt
Arbetstid
Använd WorkTime‑poster för nyttjande, lön och fakturering utan att team behöver dubbelregistrera.
API‑slutpunkter
/api/employee_working_hours
Lista tidloggar
Läs employee_working_hours‑samlingar filtrerade på anställd, projekt eller tidsintervall.
/api/employee_working_hours
Skapa tidlogg
Skicka in en ny arbetstidspost med sekunder, beskrivning och referenser till anställda/projekt.
/api/employee_working_hours/{id}
Hämta tidlogg via ID
Inspektera en enskild registrerad tidpost.
/api/employee_working_hours/{id}
Uppdatera tidlogg
Patcha loggade sekunder, projekt eller anteckningar vid korrigeringar.
/api/employee-working-hours
List employee-working-hours
Retrieve employee-working-hours with pagination and filters.
/api/employee-working-hours
Create employee-working-hour
Create a new employee-working-hour entry.
/api/employee-working-hours/{id}
Get employee-working-hour
Fetch a single employee-working-hour by ID.
/api/employee-working-hours/{id}
Update employee-working-hour
Patch fields of an employee-working-hour entry.
/api/employee-working-hours/{id}
Delete employee-working-hour
Remove an employee-working-hour entry.
/api/work-times
List work-times
Retrieve work-time entries.
/api/work-times
Create work-time
Create a work-time record.
/api/work-times/{id}
Get work-time
Fetch a single work-time by ID.
/api/work-times/{id}
Update work-time
Patch a work-time record.
/api/work-times/{id}
Delete work-time
Delete a work-time record.
/api/employees/{id}/working-hours-stats/{date}
Get working-hours stats
Retrieve aggregated working-hours stats for an employee at a date.
Användningsfall
Schemafält
WorkTime| Fält | Typ | Beskrivning |
|---|---|---|
id |
integer | Internt ID för tidloggen. |
employee |
string | IRI för den anställda som rapporterade tiden. |
project |
string | Projekt‑IRI som tar emot arbetet. |
date |
string | Tidsstämpel för när arbetet skedde. |
seconds |
integer | Varaktighet i sekunder. |
description |
string | null | Valfri anteckning som beskriver aktiviteten. |
createdAt |
string | När posten skapades i Flowtly. |
updatedAt |
string | När posten senast ändrades. |
deletedAt |
string | null | Tidsstämpel för ev. mjuk radering. |
deleted |
boolean | Check if the entity has been soft deleted. |
Exempel
/api/employee_working_hours
Tryck in en fakturerbar tidlogg från Asana
Skickar en 7,5‑timmars (27 000 sekunder) logg från ditt PM‑verktyg så Flowtly kan uppdatera nyttjande‑ och fakturamått.
{
"employee": "/api/employees/emp_102",
"project": "/api/projects/aurora",
"date": "2024-07-04T00:00:00+00:00",
"seconds": 27000,
"description": "Budget review for Aurora project"
}
{
"@id": "/api/employee_working_hours/wkt_9001",
"@type": "WorkTime",
"id": 9001,
"employee": "/api/employees/emp_102",
"project": "/api/projects/aurora",
"date": "2024-07-04T00:00:00+00:00",
"seconds": 27000,
"description": "Budget review for Aurora project",
"createdAt": "2024-07-04T18:05:00+00:00",
"updatedAt": "2024-07-04T18:05:00+00:00",
"deleted": false
}