{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-add-chat-participants-result-schema.json",
  "title": "AddChatParticipantsResult",
  "description": "Result of the add chat participants operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-communication-services-participants-api-openapi.yml#/components/schemas/AddChatParticipantsResult",
  "type": "object",
  "properties": {
    "invalidParticipants": {
      "description": "The participants that failed to be added to the chat thread.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CommunicationError"
      },
      "readOnly": true
    }
  },
  "$defs": {
    "CommonCommunicationError": {
      "description": "The Communication Services error.",
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        },
        "target": {
          "type": "string",
          "readOnly": true,
          "description": "The error target."
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CommunicationError"
          },
          "readOnly": true,
          "description": "Further details about specific errors that led to this error."
        },
        "innererror": {
          "x-ms-client-name": "innerError",
          "readOnly": true,
          "$ref": "#/$defs/CommunicationError",
          "description": "The inner error if any."
        }
      }
    },
    "CommunicationError": {
      "$ref": "#/$defs/CommonCommunicationError"
    }
  }
}