{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-viva/json-schema/microsoft-viva-microsoft-graph-learning-provider-schema.json",
  "title": "microsoft.graph.learningProvider",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-viva-openapi.yml#/components/schemas/microsoft.graph.learningProvider",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "learningProvider",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "The display name that appears in Viva Learning. Required."
        },
        "isCourseActivitySyncEnabled": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Indicates whether a provider can ingest learning course activity records. The default value is false. Set to true to make learningCourseActivities available for this provider."
        },
        "loginWebUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "Authentication URL to access the courses for the provider. Optional."
        },
        "longLogoWebUrlForDarkTheme": {
          "type": "string",
          "description": "The long logo URL for the dark mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required."
        },
        "longLogoWebUrlForLightTheme": {
          "type": "string",
          "description": "The long logo URL for the light mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required."
        },
        "squareLogoWebUrlForDarkTheme": {
          "type": "string",
          "description": "The square logo URL for the dark mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required."
        },
        "squareLogoWebUrlForLightTheme": {
          "type": "string",
          "description": "The square logo URL for the light mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required."
        },
        "learningContents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.learningContent"
          },
          "description": "Learning catalog items for the provider.",
          "x-ms-navigationProperty": true
        },
        "learningCourseActivities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.learningCourseActivity"
          },
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.learningProvider",
  "$defs": {
    "microsoft.graph.learningContent": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "learningContent",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "additionalTags": {
              "type": "array",
              "items": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": "Keywords, topics, and other tags associated with the learning content. Optional."
            },
            "contentWebUrl": {
              "type": "string",
              "description": "The content web URL for the learning content. Required."
            },
            "contributors": {
              "type": "array",
              "items": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": "The authors, creators, or contributors of the learning content. Optional."
            },
            "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": "The date and time when the learning content was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.",
              "format": "date-time"
            },
            "description": {
              "type": [
                "string",
                "null"
              ],
              "description": "The description or summary for the learning content. Optional."
            },
            "duration": {
              "pattern": "^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$",
              "type": [
                "string",
                "null"
              ],
              "description": "The duration of the learning content in seconds. The value is represented in ISO 8601 format for durations. Optional.",
              "format": "duration"
            },
            "externalId": {
              "type": "string",
              "description": "Unique external content ID for the learning content. Required."
            },
            "format": {
              "type": [
                "string",
                "null"
              ],
              "description": "The format of the learning content. For example, Course, Video, Book, Book Summary, Audiobook Summary. Optional."
            },
            "isActive": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates whether the content is active or not. Inactive content doesn't show up in the UI. The default value is true. Optional."
            },
            "isPremium": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates whether the learning content requires the user to sign-in on the learning provider platform or not. The default value is false. Optional."
            },
            "isSearchable": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates whether the learning content is searchable or not. The default value is true. Optional."
            },
            "languageTag": {
              "type": "string",
              "description": "The language of the learning content, for example, en-us or fr-fr. Required."
            },
            "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": "The date and time when the learning content was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.",
              "format": "date-time"
            },
            "level": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.level"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "The difficulty level of the learning content. The possible values are: Beginner, Intermediate, Advanced, unknownFutureValue. Optional."
            },
            "numberOfPages": {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": [
                "number",
                "null"
              ],
              "description": "The number of pages of the learning content, for example, 9. Optional.",
              "format": "int32"
            },
            "skillTags": {
              "type": "array",
              "items": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": "The skills tags associated with the learning content. Optional."
            },
            "sourceName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The source name of the learning content, such as LinkedIn Learning or Coursera. Optional."
            },
            "thumbnailWebUrl": {
              "type": [
                "string",
                "null"
              ],
              "description": "The URL of learning content thumbnail image. Optional."
            },
            "title": {
              "type": "string",
              "description": "The title of the learning content. Required."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.learningContent"
    },
    "microsoft.graph.learningCourseActivity": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "learningCourseActivity",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "completedDateTime": {
              "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 assignment was completed. Optional.",
              "format": "date-time"
            },
            "completionPercentage": {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": [
                "number",
                "null"
              ],
              "description": "The percentage completion value of the course activity. Optional.",
              "format": "int32"
            },
            "externalcourseActivityId": {
              "type": [
                "string",
                "null"
              ]
            },
            "learnerUserId": {
              "type": "string",
              "description": "The user ID of the learner to whom the activity is assigned. Required."
            },
            "learningContentId": {
              "type": "string",
              "description": "The ID of the learning content created in Viva Learning. Required."
            },
            "learningProviderId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The registration ID of the provider. Required."
            },
            "status": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.courseStatus"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "The status of the course activity. The possible values are: notStarted, inProgress, completed. Required."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ]
    }
  }
}