Label in Fledge: ApprovedTimesheetHeader
| URL | https://odata-api.fledge.nl/v2-8/ApprovedTimesheetHeaders |
|---|---|
| Key | administration_idapproved_timesheet_header_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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
approved_timesheet_header_idkey | Int32 | Volgnummer |
created_at | DateTimeOffset | Datumtijd aanmaak |
created_by | Int32 | Gebr.aanmaak: Gebruiker aanmaak |
debtor_id | Int32 | Debiteurnummer |
modified_at | DateTimeOffset | Datumtijd wijzig: Datumtijd laatste wijziging |
modified_by | Int32 | Gebr.wijzig: Gebruiker laatste wijziging |
relation_contact_person_id | Int32 | Volgnummer contactpersoon |
relation_id | Int32 | Relatie |
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 |
ApprovedTimesheetLines | ApprovedTimesheetLines | many |