files
The type files
stores a list of files. One of the files must be marked as the preferred file. That is used in the standard rendering as well as other outputs.
API
Files need to be uploaded into fylr
via the /api/eas endpoint. That endpoint will assign a unique ID to that file. That file ID can be used to link the file to an object using the API.
There are 3 properties which only belong to the relation between the object and the file: preferred
, name
, frontend_prefs
.
API users must use the frontend_prefs
starting with a top level property identifying themselves. In the above example, that would be myapp. To the API user unknown top level properties must be written back as read.
Index
Only the preferred file of the list of files will be stored in the index.
Export
The XML Export looks like this:
Last updated