Whether a user may read or write the documents of a category.
Label in Fledge: Koppeling gebruikers met doc.categorie
| URL | https://odata-api.fledge.nl/v2-8/UserDocumentCategoryLinks |
|---|---|
| Key | document_category_iduser_id |
| Administration | Shared by all administrations. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISURENPC |
| 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/UserDocumentCategoryLinks" \
--data-urlencode '$select=document_category_id,user_id,read,write' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/UserDocumentCategoryLinks');
url.searchParams.set('$select', 'document_category_id,user_id,read,write');
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/UserDocumentCategoryLinks" + "?" + string.Join("&",
"$select=" + Uri.EscapeDataString("document_category_id,user_id,read,write"),
"$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/UserDocumentCategoryLinks(document_category_id='{document_category_id}',user_id={user_id})Fields
| Field | Type | Description |
|---|---|---|
document_category_idkey | String | Documentcategorie code |
user_idkey | Int32 | Gebruikersnummer: Gebruikers nummer, ook een unieke key voor de tabel |
read | Boolean | Lezen: Leesbevoegdheid ja/nee |
write | Boolean | Schrijven: Schrijfbevoegdheid ja/nee |
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 | |
|---|---|---|
DocumentCategory | DocumentCategories | one |
User | Users | one |