One stored file (document). It is attached to rows by DocumentLinks and sorted into categories by DocumentCategoryLinks.
Label in Fledge: Document registratie
| URL | https://odata-api.fledge.nl/v2-8/DocumentRegistrations |
|---|---|
| Key | administration_iddocument_registration_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISURENPC |
| Write licenses | BASIS |
| Scopes | FLEDGE_PORTALFLEDGE_TERMINAL |
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/DocumentRegistrations" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=document_registration_id,cloud_storage_location_id,date_created,description_1' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/DocumentRegistrations');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'document_registration_id,cloud_storage_location_id,date_created,description_1');
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/DocumentRegistrations" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("document_registration_id,cloud_storage_location_id,date_created,description_1"),
"$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/DocumentRegistrations(administration_id=1,document_registration_id={document_registration_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
document_registration_idkey | Int32 | Nummer |
changed_by_user_code | String | Gebr.wijzig: Gebruikerscode van gebruiker laatste wijziging |
changed_by_user_id | Int32 | Gebruiker wijziging: Gebruiker laatste wijziging |
cloud_storage_location_id | Int32 | Volgnummer WebDav The storage location. 0 on old documents until the file is first opened through the Fledge API, which then stores the location it found the file on. |
created_by_user_code | String | Gebr.aanm.: Gebruikerscode van gebruiker aanmaak |
created_by_user_id | Int32 | Gebruiker aanmaak |
date_changed | Date | Datum wijziging: Datum laatste wijziging |
date_created | Date | Datum aanmaak The upload date. For files uploaded through the Fledge API (the app does so) it is the UTC date. |
description_1 | String | Omschrijving 1 The description; the app fills it with the file name. |
description_2 | String | Omschrijving 2 |
description_3 | String | Omschrijving 3 |
filename | String | Bestandsnaam exclusief pad The file name, without the path. |
keywords | String | Keywords van het document |
memo | String | Memo |
report | String | Volledige bestandsnaam The full stored path of the file, not a report. |
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 |
CreatedBy | Users | one |
UpdatedBy | Users | one |
CategoryLinks | DocumentCategoryLinks | many |
DocumentLinks | DocumentLinks | many |