Links an article to one image file. The image is a Base64Files row: read it there, in a separate query, not through $expand. Not the same as files attached to an article (DocumentLinks with linked_table 'part').
Label in Fledge: Koppeltabel artikel/Base64File
| URL | https://odata-api.fledge.nl/v2-8/ArticleBase64Files |
|---|---|
| Key | administration_idarticle_idbase_64_file_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPP |
| Write licenses | INKOOPVERKOOPPRODUCTIEFINANCIEELBEHEER |
| 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/ArticleBase64Files" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=article_id,base_64_file_id' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/ArticleBase64Files');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'article_id,base_64_file_id');
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/ArticleBase64Files" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("article_id,base_64_file_id"),
"$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/ArticleBase64Files(administration_id=1,article_id='{article_id}',base_64_file_id={base_64_file_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer: Administratie |
article_idkey | String | Artikelcode |
base_64_file_idkey | Int64 | Volgnummer |