One hours booking offered to a third party, normally the customer, for approval. The header (ApprovedTimesheetHeaders) names the customer and contact person. Not the manager's approval of hours, which is TimesheetEntries.status.
Label in Fledge: ApprovedTimesheetLine
| URL | https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines |
|---|---|
| Key | administration_idapproved_timesheet_header_idapproved_timesheet_line_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPP |
| Write licenses | BASISBASISAPP |
| Scopes | FLEDGE_THIRD_PARTY_HOURS_APPROVALFLEDGE_PORTAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=approved_timesheet_header_id,approved_timesheet_line_id,approved_at,memo,status' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'approved_timesheet_header_id,approved_timesheet_line_id,approved_at,memo,status');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("approved_timesheet_header_id,approved_timesheet_line_id,approved_at,memo,status"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
GET https://odata-api.fledge.nl/v2-8/ApprovedTimesheetLines(administration_id=1,approved_timesheet_header_id={approved_timesheet_header_id},approved_timesheet_line_id={approved_timesheet_line_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
approved_timesheet_header_idkey | Int32 | Volgnummer |
approved_timesheet_line_idkey | Int32 | Volgnummer van regel |
approved_at | DateTimeOffset | Datumtijd fiattering When the third party answered. |
employee_id | Int32 | Mannummer |
memo | String | Memo: Commentaar The third party's comment. |
modified_at | DateTimeOffset | Datumtijd wijzig: Datumtijd laatste wijziging |
modified_by | Int32 | Gebr.wijzig: Gebruiker laatste wijziging |
status | Int32 | Status
|
timesheet_entry_date | Date | Datum |
timesheet_entry_id | Int32 | Volgnr: Volgnummer om meerdere keren op zelfde orderschrapnr te kunnen boeken. |
Relations
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
ApprovedTimesheetHeader | ApprovedTimesheetHeaders | one |
Employee | Employees | one |
TimesheetEntry | TimesheetEntries | one |