{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-experience-cloud/json-schema/salesforce-experience-cloud-media-file-schema.json",
  "title": "MediaFile",
  "description": "A CMS media file",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-experience-cloud-media-api-openapi.yml#/components/schemas/MediaFile",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the media file"
    },
    "altText": {
      "type": "string",
      "description": "Alternative text for the media"
    },
    "fileName": {
      "type": "string",
      "description": "Original file name"
    },
    "mediaType": {
      "type": "string",
      "description": "Type of media",
      "enum": [
        "Image",
        "Document",
        "Video"
      ]
    },
    "mimeType": {
      "type": "string",
      "description": "MIME type of the file"
    },
    "referenceId": {
      "type": "string",
      "description": "Reference ID for the media"
    },
    "title": {
      "type": "string",
      "description": "Display title of the media"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL to access the media file"
    }
  }
}