Label in Fledge: Materiaal soorten

URLhttps://odata-api.fledge.nl/v2-8/MaterialTypes
Keyadministration_idmaterial_type_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesPRODUCTIEBEHEER
ScopesFLEDGE_PORTAL

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/MaterialTypes" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=material_type_id,description,standard_price,unit_price' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/MaterialTypes');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'material_type_id,description,standard_price,unit_price');
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/MaterialTypes" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("material_type_id,description,standard_price,unit_price"),
    "$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/MaterialTypes(administration_id=1,material_type_id='{material_type_id}')

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
material_type_idkeyStringMateriaalsoort
article_idStringArtikelcode
descriptionStringOmschrijving materiaalsoort.
material_group_idInt32Materiaalgroepnummer
specific_weightDecimalSoort. gewicht: Soortelijk gewicht.
standard_priceDecimalMateriaalprijs
unit_priceInt32Prijs eenheid

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
Wingman