MediaItem
MediaItem - A single photo/media item. Analytics spec: Media item with all photo details.
roomTypeIdstring
Room/object ID (UUID string, empty for hotel-level)
idinteger<int32>
Photo ID (int32 to ensure JSON number serialization)
titlestring
Photo title/description
fullPathstring
Full path to photo (e.g., "https://cdn.example.com/photos/xxx/")
fileNamestring
File name of photo (e.g., "photo1.jpg")
tags object[]
Photo tags (array of tag objects)
Array [
idinteger<int32>
Tag ID (1-7)
namestring
Tag name (BEDROOM, KITCHEN, BATHROOM, YARD, VIEW_FROM_WINDOW, POOL, OTHER)
]
aspectRationumber<float>
Aspect ratio as float (e.g., 1.333 for 4:3, 1.778 for 16:9)
dateAddstring
Date photo was added (ISO format string, e.g., "2024-01-15")
MediaItem
{
"roomTypeId": "string",
"id": 0,
"title": "string",
"fullPath": "string",
"fileName": "string",
"tags": [
{
"id": 0,
"name": "string"
}
],
"aspectRatio": 0,
"dateAdd": "string"
}