Amadeus Media · Schema
HotelMediaItem
A detailed media item with dimensions and format information.
ContentHotelsImagesMediaTravel
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique identifier for the media item. |
| category | string | Media category type. |
| uri | string | URL of the full-size image. |
| thumbnailUri | string | URL of the thumbnail image. |
| caption | string | Image caption or alt text. |
| width | integer | Image width in pixels. |
| height | integer | Image height in pixels. |
| format | string | Image format. |
| isPrimary | boolean | Indicates whether this is the primary/featured image for this category. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amadeus-media/refs/heads/main/json-schema/hotel-content-hotel-media-item-schema.json",
"title": "HotelMediaItem",
"description": "A detailed media item with dimensions and format information.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the media item.",
"example": "media-001"
},
"category": {
"type": "string",
"description": "Media category type.",
"example": "EXTERIOR"
},
"uri": {
"type": "string",
"format": "uri",
"description": "URL of the full-size image.",
"example": "https://media.amadeus.com/hotels/MCLONGHM/exterior-01.jpg"
},
"thumbnailUri": {
"type": "string",
"format": "uri",
"description": "URL of the thumbnail image.",
"example": "https://media.amadeus.com/hotels/MCLONGHM/exterior-01-thumb.jpg"
},
"caption": {
"type": "string",
"description": "Image caption or alt text.",
"example": "Hotel Exterior View"
},
"width": {
"type": "integer",
"description": "Image width in pixels.",
"example": 1920
},
"height": {
"type": "integer",
"description": "Image height in pixels.",
"example": 1080
},
"format": {
"type": "string",
"description": "Image format.",
"enum": [
"JPEG",
"PNG",
"WEBP"
],
"example": "JPEG"
},
"isPrimary": {
"type": "boolean",
"description": "Indicates whether this is the primary/featured image for this category.",
"example": true
}
}
}