Label in Fledge: ApprovedTimesheetHeader

URLhttps://odata-api.fledge.nl/v2-8/ApprovedTimesheetHeaders
Keyadministration_idapproved_timesheet_header_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPP
Write licensesBASISBASISAPP
ScopesFLEDGE_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/ApprovedTimesheetHeaders" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=approved_timesheet_header_id,created_at,debtor_id,modified_at' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/ApprovedTimesheetHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'approved_timesheet_header_id,created_at,debtor_id,modified_at');
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/ApprovedTimesheetHeaders" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("approved_timesheet_header_id,created_at,debtor_id,modified_at"),
    "$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/ApprovedTimesheetHeaders(administration_id=1,approved_timesheet_header_id={approved_timesheet_header_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
approved_timesheet_header_idkeyInt32Volgnummer
created_atDateTimeOffsetDatumtijd aanmaak
created_byInt32Gebr.aanmaak: Gebruiker aanmaak
debtor_idInt32Debiteurnummer
modified_atDateTimeOffsetDatumtijd wijzig: Datumtijd laatste wijziging
modified_byInt32Gebr.wijzig: Gebruiker laatste wijziging
relation_contact_person_idInt32Volgnummer contactpersoon
relation_idInt32Relatie

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.

NavigationEntity set
AdministrationAdministrationsone
ApprovedTimesheetLinesApprovedTimesheetLinesmany
Wingman