One stored file (document). It is attached to rows by DocumentLinks and sorted into categories by DocumentCategoryLinks.

Label in Fledge: Document registratie

URLhttps://odata-api.fledge.nl/v2-8/DocumentRegistrations
Keyadministration_iddocument_registration_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISURENPC
Write licensesBASIS
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratienummer
document_registration_idkeyInt32Nummer
changed_by_user_codeStringGebr.wijzig: Gebruikerscode van gebruiker laatste wijziging
changed_by_user_idInt32Gebruiker wijziging: Gebruiker laatste wijziging
cloud_storage_location_idInt32Volgnummer 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_codeStringGebr.aanm.: Gebruikerscode van gebruiker aanmaak
created_by_user_idInt32Gebruiker aanmaak
date_changedDateDatum wijziging: Datum laatste wijziging
date_createdDateDatum aanmaak

The upload date. For files uploaded through the Fledge API (the app does so) it is the UTC date.

description_1StringOmschrijving 1

The description; the app fills it with the file name.

description_2StringOmschrijving 2
description_3StringOmschrijving 3
filenameStringBestandsnaam exclusief pad

The file name, without the path.

keywordsStringKeywords van het document
memoStringMemo
reportStringVolledige 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.

NavigationEntity set
AdministrationAdministrationsone
CreatedByUsersone
UpdatedByUsersone
CategoryLinksDocumentCategoryLinksmany
DocumentLinksDocumentLinksmany
Wingman