Where documents are stored: a SharePoint or WebDAV location.

Label in Fledge: WebDAV mappings

URLhttps://odata-api.fledge.nl/v2-8/CloudStorageLocations
Keycloud_storage_location_id
AdministrationShared by all administrations.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBEHEER
Write licensesBEHEER
ScopesFLEDGE_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/CloudStorageLocations" \
  --data-urlencode '$select=cloud_storage_location_id,updated_by,username,created' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/CloudStorageLocations');
url.searchParams.set('$select', 'cloud_storage_location_id,updated_by,username,created');
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/CloudStorageLocations" + "?" + string.Join("&",
    "$select=" + Uri.EscapeDataString("cloud_storage_location_id,updated_by,username,created"),
    "$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/CloudStorageLocations({cloud_storage_location_id})

Fields

FieldTypeDescription
cloud_storage_location_idkeyInt32Volgnummer
createdDateTimeOffsetAangemaakt op: Datum/tijd aanmaak
modifiedDateTimeOffsetGewijzigd op: Datum/tijd laatste wijziging
created_byInt32Gebruiker aanmaak
local_pathStringLokaal pad
storage_configStringStorage configuration
storage_typeInt32Storage type
  • 0 An old WebDAV location not yet converted; it becomes 2 once a file is found on it
  • 1 SharePoint
  • 2 WebDAV
updated_byInt32Gewijzigd door gebruiker
urlStringURL
usernameStringUser name

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
DocumentRegistrationsDocumentRegistrationsmany

Actions

getSharePointDrives

GET https://odata-api.fledge.nl/v2-8/CloudStorageLocations/getSharePointDrives(…)
  • tenant_id String
  • client_id String
  • client_secret String
  • site_id String

Returns SharePointResultDto

getSharePointFiles

GET https://odata-api.fledge.nl/v2-8/CloudStorageLocations/getSharePointFiles(…)
  • tenant_id String
  • client_id String
  • client_secret String
  • site_id String
  • drive_id String

Returns SharePointResultDto

getSharePointSites

GET https://odata-api.fledge.nl/v2-8/CloudStorageLocations/getSharePointSites(…)
  • tenant_id String
  • client_id String
  • client_secret String

Returns SharePointResultDto

upload

POST https://odata-api.fledge.nl/v2-8/CloudStorageLocations({cloud_storage_location_id})/upload

Returns DocumentRegistration

Wingman