A file can be a single image or a collection (array) of images if it is a presentation.
Request (when POST to /api/v1/rooms or PATCH to /api/v1/rooms:id)
Copy {
...Other room props here...
"files": [
{
"name": "starship.png",
"url": "https://cdn.britannica.com/51/238251-050-EF7A9C22/SpaceX-Starship-Super-Heavy-Rocket-Boca-Chica-Texas-February-2022.jpg",
"thumbnail_url": "https://cdn.rebrickable.com/media/thumbs/mocs/moc-66505.jpg/1000x800.jpg"
},
{
"name": "Plan for 2024.ppt",
"pages": [
{
"url": "https://www.lifewire.com/thmb/sXrReuuQUimBg2RQSU7f2bNBXIU=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/create-pictures-from-powerpoint-slides-R1-5c260a9c46e0fb0001fe92b4.jpg",
"thumbnail_url": "https://www.lifewire.com/thmb/sXrReuuQUimBg2RQSU7f2bNBXIU=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/create-pictures-from-powerpoint-slides-R1-5c260a9c46e0fb0001fe92b4.jpg"
},
{
"url": "https://www.aiseesoft.com/images/how-to/save-powerpoint-slides-as-jpeg/save-powerpoint-slides-as-jpeg.jpg",
"thumbnail_url": "https://www.aiseesoft.com/images/how-to/save-powerpoint-slides-as-jpeg/save-powerpoint-slides-as-jpeg.jpg"
}
]
}
]
}
Copy {
...Other room props here...
"files": [
{
"id": "25e6b948-cc6a-47cb-85c4-52fc4549b09f",
"name": "Plan for 2024.ppt",
"pages": [
{
"url": "https://www.lifewire.com/thmb/sXrReuuQUimBg2RQSU7f2bNBXIU=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/create-pictures-from-powerpoint-slides-R1-5c260a9c46e0fb0001fe92b4.jpg",
"thumbnail_url": "https://www.lifewire.com/thmb/sXrReuuQUimBg2RQSU7f2bNBXIU=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/create-pictures-from-powerpoint-slides-R1-5c260a9c46e0fb0001fe92b4.jpg"
},
{
"url": "https://www.aiseesoft.com/images/how-to/save-powerpoint-slides-as-jpeg/save-powerpoint-slides-as-jpeg.jpg",
"thumbnail_url": "https://www.aiseesoft.com/images/how-to/save-powerpoint-slides-as-jpeg/save-powerpoint-slides-as-jpeg.jpg"
}
]
},
{
"id": "b52a8218-1cd9-4ade-9d42-e4472af241d6",
"name": "starship.png",
"url": "https://cdn.britannica.com/51/238251-050-EF7A9C22/SpaceX-Starship-Super-Heavy-Rocket-Boca-Chica-Texas-February-2022.jpg",
"thumbnail_url": "https://cdn.rebrickable.com/media/thumbs/mocs/moc-66505.jpg/1000x800.jpg"
}
]
}