{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-skype/json-schema/microsoft-skype-create-chat-thread-result-schema.json",
  "title": "CreateChatThreadResult",
  "description": "Result of the create chat thread operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-skype-threads-api-openapi.yml#/components/schemas/CreateChatThreadResult",
  "type": "object",
  "properties": {
    "chatThread": {
      "$ref": "#/$defs/ChatThreadProperties"
    },
    "invalidParticipants": {
      "description": "The participants that failed to be added to the chat thread.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CommunicationError"
      },
      "readOnly": true
    }
  },
  "$defs": {
    "ChatRetentionPolicy": {
      "description": "Data retention policy for auto deletion.",
      "type": "object",
      "properties": {
        "kind": {
          "description": "Retention Policy Type",
          "enum": [
            "threadCreationDate",
            "none"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "RetentionPolicyKind",
            "modelAsString": true,
            "values": [
              {
                "value": "threadCreationDate",
                "description": "Thread retention policy based on thread creation date."
              },
              {
                "value": "none",
                "description": "No thread retention policy"
              }
            ]
          }
        }
      },
      "required": [
        "kind"
      ]
    },
    "ChatThreadProperties": {
      "description": "Chat thread.",
      "required": [
        "createdByCommunicationIdentifier",
        "createdOn",
        "id",
        "topic"
      ],
      "type": "object",
      "properties": {
        "id": {
          "description": "Chat thread id.",
          "type": "string"
        },
        "topic": {
          "description": "Chat thread topic.",
          "type": "string"
        },
        "createdOn": {
          "format": "date-time",
          "description": "The timestamp when the chat thread was created. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
          "type": "string"
        },
        "createdByCommunicationIdentifier": {
          "$ref": "#/$defs/CommunicationIdentifierModel"
        },
        "deletedOn": {
          "format": "date-time",
          "description": "The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
          "type": "string"
        },
        "metadata": {
          "description": "Contextual metadata for the thread. The metadata consists of name/value pairs. The total size of all metadata pairs can be up to 1KB in size.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "retentionPolicy": {
          "$ref": "#/$defs/ChatRetentionPolicy"
        }
      }
    },
    "CommunicationError": {
      "$ref": "../../../Common/stable/2023-11-15/common.json#/definitions/CommunicationError"
    },
    "CommunicationIdentifierModel": {
      "$ref": "../../../Common/stable/2025-06-30/common.json#/definitions/CommunicationIdentifierModel"
    }
  }
}