{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-chat-message-hosted-content-schema.json",
  "title": "microsoft.graph.chatMessageHostedContent",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-chats-chatmessage-api-openapi.yml#/components/schemas/microsoft.graph.chatMessageHostedContent",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.teamworkHostedContent"
    },
    {
      "title": "chatMessageHostedContent",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.chatMessageHostedContent",
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.teamworkHostedContent": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "teamworkHostedContent",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "contentBytes": {
              "type": [
                "string",
                "null"
              ],
              "description": "Write only. Bytes for the hosted content (such as images).",
              "format": "base64url"
            },
            "contentType": {
              "type": [
                "string",
                "null"
              ],
              "description": "Write only. Content type. such as image/png, image/jpg."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ]
    }
  }
}