Label in Fledge: Agenten
| URL | https://odata-api.fledge.nl/v2-8/Agents |
|---|---|
| Key | agent_id |
| Administration | Shared by all administrations. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPPURENPC |
| 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/Agents" \
--data-urlencode '$select=agent_id,name' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/Agents');
url.searchParams.set('$select', 'agent_id,name');
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/Agents" + "?" + string.Join("&",
"$select=" + Uri.EscapeDataString("agent_id,name"),
"$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/Agents({agent_id})Fields
| Field | Type | Description |
|---|---|---|
agent_idkey | Int32 | verwijzing naar de tabel agnt (agent) |
name | String | Naam van de agent |
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 | |
|---|---|---|
User | Users | one |
ProductionOrderHeaders | ProductionOrderHeaders | many |