{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-training-schema.json",
  "title": "microsoft.graph.training",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-attacksimulationroot-api-openapi.yml#/components/schemas/microsoft.graph.training",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "training",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "availabilityStatus": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.trainingAvailabilityStatus"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Training availability status. The possible values are: unknown, notAvailable, available, archive, delete, unknownFutureValue."
        },
        "createdBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.emailIdentity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Identity of the user who created the training."
        },
        "createdDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "Date and time when the training was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
          "format": "date-time"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The description for the training."
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name for the training."
        },
        "durationInMinutes": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "description": "Training duration.",
          "format": "int32"
        },
        "hasEvaluation": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Indicates whether the training has any evaluation."
        },
        "lastModifiedBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.emailIdentity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Identity of the user who last modified the training."
        },
        "lastModifiedDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "Date and time when the training was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
          "format": "date-time"
        },
        "source": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.simulationContentSource"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Training content source. The possible values are: unknown, global, tenant, unknownFutureValue."
        },
        "supportedLocales": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "Supported locales for content for the associated training."
        },
        "tags": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "Training tags."
        },
        "type": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.trainingType"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The type of training. The possible values are: unknown, phishing, unknownFutureValue."
        },
        "languageDetails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.trainingLanguageDetail"
          },
          "description": "Language specific details on a training.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.training",
  "$defs": {
    "microsoft.graph.emailIdentity": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        {
          "title": "emailIdentity",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "email": {
              "type": [
                "string",
                "null"
              ],
              "description": "Email address of the user."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.emailIdentity"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.emailIdentity"
    },
    "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.identity": {
      "title": "identity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.simulationContentSource": {
      "title": "simulationContentSource",
      "enum": [
        "unknown",
        "global",
        "tenant",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.trainingAvailabilityStatus": {
      "title": "trainingAvailabilityStatus",
      "enum": [
        "unknown",
        "notAvailable",
        "available",
        "archive",
        "delete",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.trainingLanguageDetail": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "trainingLanguageDetail",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "content": {
              "type": "string",
              "description": "Language specific content for the training."
            },
            "createdBy": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.emailIdentity"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Identity of the user who created the language details."
            },
            "createdDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "Date and time when the language details were created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
              "format": "date-time"
            },
            "description": {
              "type": [
                "string",
                "null"
              ],
              "description": "Description as defined by the user."
            },
            "displayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "Display name as defined by the user."
            },
            "isDefaultLangauge": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates whether the training has a default language."
            },
            "lastModifiedBy": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.emailIdentity"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Identity of the user who last modified the details."
            },
            "lastModifiedDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "Date and time when the trainingLanguageDetail was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
              "format": "date-time"
            },
            "locale": {
              "type": "string",
              "description": "Content locale for the training detail."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.trainingLanguageDetail"
    },
    "microsoft.graph.trainingType": {
      "title": "trainingType",
      "enum": [
        "unknown",
        "phishing",
        "unknownFutureValue"
      ],
      "type": "string"
    }
  }
}