A document category. Users may read or write the documents of a category (UserDocumentCategoryLinks).
Label in Fledge: Documentcategorie
| URL | https://odata-api.fledge.nl/v2-8/DocumentCategories |
|---|---|
| Key | document_category_id |
| Administration | Shared by all administrations. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BEHEER |
| 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/DocumentCategories" \
--data-urlencode '$select=document_category_id,description,path' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/DocumentCategories');
url.searchParams.set('$select', 'document_category_id,description,path');
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/DocumentCategories" + "?" + string.Join("&",
"$select=" + Uri.EscapeDataString("document_category_id,description,path"),
"$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/DocumentCategories('{document_category_id}')Fields
| Field | Type | Description |
|---|---|---|
document_category_idkey | String | Documentcategorie code |
description | String | Omschrijving |
path | String | Pad: Locatie |
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 | |
|---|---|---|
DocumentCategoryLinks | DocumentCategoryLinks | many |
UserDocumentCategoryLinks | UserDocumentCategoryLinks | many |