Event Connectors

File

File metadata with FileType and MediaType enums — including webp and floorplan

The File object represents an attached media asset on a TRCItem — images, videos, PDFs, audio files, or geo data. Each file has a filetype (the wire format) and a mediatype (the semantic role).

Example

{
  "trcid": "f_abc123",
  "main": true,
  "filename": "museum-exterior.jpg",
  "hlink": "https://cdn.example.com/images/museum-exterior.jpg",
  "filetype": "jpg",
  "mediatype": "photo",
  "copyright": "© Rijksmuseum"
}

Fields

FieldTypeDescription
trcidstringFile identifier
mainbooleanPrimary file for this item
filenamestringOriginal filename (or video ID for YouTube/Vimeo)
hlinkstringURL to the file
filetypestringFile format (see FileType below)
mediatypestringSemantic role (see MediaType below)
copyrightstringCopyright notice
targetLanguagestringLanguage of the content
titleobjectTitle with translations

FileType

The underlying file format:

ValueCategoryNotes
jpegImage
jpgImage
pngImage
gifImage
bmpImage
tifImage
tiffImage
jfifImage
webpImageRecently added
mp3Audio
pdfDocument
gpxGeo dataGPS track
kmlGeo dataKeyhole Markup
kmzGeo dataCompressed KML
youtubeVideofilename holds the video ID; hlink is the canonical YouTube URL
vimeoVideofilename holds the video ID

When mediatype is omitted, the API derives it from filetype automatically: image types become photo, youtube/vimeo become video.

MediaType

The semantic role of the file:

ValueMeaning
photoPhotographic image (most common)
videoVideo content
audioAudio recording
posterPromotional poster artwork
logoBrand or organisation logo
brochureMulti-page promotional document
floorplanFloor plan or layout diagram — recently added
roadmapRoute or area map
textPlain-text content
attachmentGeneric attachment
qrQR code image
otherCatch-all

The webp file type and floorplan media type are recent additions to the model.

Image Specifications

When providing images via a feed or the API, use these guidelines for best results across publishing channels:

RequirementValue
Minimum dimensions1800 × 1020 px
OrientationLandscape (wider than tall)
Maximum file size7–10 MB
File nameNo spaces or special characters (e.g., avoid %)

Higher-resolution images are preferred because content may be displayed on large screens (TV, digital signage). The system does not resize on ingest, so provide the highest quality your source supports.

See the API Reference for the full File schema.

On this page