PATCH https://graph.microsoft.com/v1.0/employeeExperience/learningProviders/13727311-e7bb-470d-8b20-6a23d9030d70/learningContents/77029588-a660-46b6-ba58-3ce4d21d5678
Content-Type: application/json
{
"title": "Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle",
"description": "A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.",
"contentWebUrl": "https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/",
"sourceName": "MsLearn",
"thumbnailWebUrl": "https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF",
"languageTag": "en-us",
"numberOfPages": 9,
"duration": "PT20M",
"format": "Book",
"level": "Beginner",
"createdDateTime": "2018-01-01T00:00:00Z",
"lastModifiedDateTime": "2021-04-01T04:26:06.1995367Z",
"contributors": [
"Lina Wagner",
"Lisa Richter"
],
"additionalTags": [
"Create private or public teams",
"Add members to teams"
],
"skillTags": [
"Create teams",
"Teams channels",
"Teams members"
],
"isActive": true,
"isPremium": false,
"isSearchable": true
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new LearningContent
{
Title = "Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle",
Description = "A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.",
ContentWebUrl = "https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/",
SourceName = "MsLearn",
ThumbnailWebUrl = "https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF",
LanguageTag = "en-us",
NumberOfPages = 9,
Duration = TimeSpan.Parse("PT20M"),
Format = "Book",
Level = Level.Beginner,
CreatedDateTime = DateTimeOffset.Parse("2018-01-01T00:00:00Z"),
LastModifiedDateTime = DateTimeOffset.Parse("2021-04-01T04:26:06.1995367Z"),
Contributors = new List<string>
{
"Lina Wagner",
"Lisa Richter",
},
AdditionalTags = new List<string>
{
"Create private or public teams",
"Add members to teams",
},
SkillTags = new List<string>
{
"Create teams",
"Teams channels",
"Teams members",
},
IsActive = true,
IsPremium = false,
IsSearchable = true,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.EmployeeExperience.LearningProviders["{learningProvider-id}"].LearningContents["{learningContent-id}"].PatchAsync(requestBody);
mgc employee-experience learning-providers learning-contents patch --learning-provider-id {learningProvider-id} --learning-content-id {learningContent-id} --body '{\
"title": "Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle",\
"description": "A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.",\
"contentWebUrl": "https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/",\
"sourceName": "MsLearn",\
"thumbnailWebUrl": "https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF",\
"languageTag": "en-us",\
"numberOfPages": 9,\
"duration": "PT20M",\
"format": "Book",\
"level": "Beginner",\
"createdDateTime": "2018-01-01T00:00:00Z",\
"lastModifiedDateTime": "2021-04-01T04:26:06.1995367Z",\
"contributors": [\
"Lina Wagner",\
"Lisa Richter"\
],\
"additionalTags": [\
"Create private or public teams",\
"Add members to teams"\
],\
"skillTags": [\
"Create teams",\
"Teams channels",\
"Teams members"\
],\
"isActive": true,\
"isPremium": false,\
"isSearchable": true\
}\
'
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
LearningContent learningContent = new LearningContent();
learningContent.setTitle("Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle");
learningContent.setDescription("A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.");
learningContent.setContentWebUrl("https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/");
learningContent.setSourceName("MsLearn");
learningContent.setThumbnailWebUrl("https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF");
learningContent.setLanguageTag("en-us");
learningContent.setNumberOfPages(9);
PeriodAndDuration duration = PeriodAndDuration.ofDuration(Duration.parse("PT20M"));
learningContent.setDuration(duration);
learningContent.setFormat("Book");
learningContent.setLevel(Level.Beginner);
OffsetDateTime createdDateTime = OffsetDateTime.parse("2018-01-01T00:00:00Z");
learningContent.setCreatedDateTime(createdDateTime);
OffsetDateTime lastModifiedDateTime = OffsetDateTime.parse("2021-04-01T04:26:06.1995367Z");
learningContent.setLastModifiedDateTime(lastModifiedDateTime);
LinkedList<String> contributors = new LinkedList<String>();
contributors.add("Lina Wagner");
contributors.add("Lisa Richter");
learningContent.setContributors(contributors);
LinkedList<String> additionalTags = new LinkedList<String>();
additionalTags.add("Create private or public teams");
additionalTags.add("Add members to teams");
learningContent.setAdditionalTags(additionalTags);
LinkedList<String> skillTags = new LinkedList<String>();
skillTags.add("Create teams");
skillTags.add("Teams channels");
skillTags.add("Teams members");
learningContent.setSkillTags(skillTags);
learningContent.setIsActive(true);
learningContent.setIsPremium(false);
learningContent.setIsSearchable(true);
LearningContent result = graphClient.employeeExperience().learningProviders().byLearningProviderId("{learningProvider-id}").learningContents().byLearningContentId("{learningContent-id}").patch(learningContent);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\LearningContent;
use Microsoft\Graph\Generated\Models\Level;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new LearningContent();
$requestBody->setTitle('Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle');
$requestBody->setDescription('A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.');
$requestBody->setContentWebUrl('https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/');
$requestBody->setSourceName('MsLearn');
$requestBody->setThumbnailWebUrl('https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF');
$requestBody->setLanguageTag('en-us');
$requestBody->setNumberOfPages(9);
$requestBody->setDuration(new \DateInterval('PT20M'));
$requestBody->setFormat('Book');
$requestBody->setLevel(new Level('beginner'));
$requestBody->setCreatedDateTime(new \DateTime('2018-01-01T00:00:00Z'));
$requestBody->setLastModifiedDateTime(new \DateTime('2021-04-01T04:26:06.1995367Z'));
$requestBody->setContributors(['Lina Wagner', 'Lisa Richter', ]);
$requestBody->setAdditionalTags(['Create private or public teams', 'Add members to teams', ]);
$requestBody->setSkillTags(['Create teams', 'Teams channels', 'Teams members', ]);
$requestBody->setIsActive(true);
$requestBody->setIsPremium(false);
$requestBody->setIsSearchable(true);
$result = $graphServiceClient->employeeExperience()->learningProviders()->byLearningProviderId('learningProvider-id')->learningContents()->byLearningContentId('learningContent-id')->patch($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.learning_content import LearningContent
from msgraph.generated.models.level import Level
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = LearningContent(
title = "Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle",
description = "A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.",
content_web_url = "https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/",
source_name = "MsLearn",
thumbnail_web_url = "https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF",
language_tag = "en-us",
number_of_pages = 9,
duration = "PT20M",
format = "Book",
level = Level.Beginner,
created_date_time = "2018-01-01T00:00:00Z",
last_modified_date_time = "2021-04-01T04:26:06.1995367Z",
contributors = [
"Lina Wagner",
"Lisa Richter",
],
additional_tags = [
"Create private or public teams",
"Add members to teams",
],
skill_tags = [
"Create teams",
"Teams channels",
"Teams members",
],
is_active = True,
is_premium = False,
is_searchable = True,
)
result = await graph_client.employee_experience.learning_providers.by_learning_provider_id('learningProvider-id').learning_contents.by_learning_content_id('learningContent-id').patch(request_body)
HTTP/1.1 202 Accepted
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#learningProviders('13727311-e7bb-470d-8b20-6a23d9030d70')/learningContents/$entity",
"id": "77029588-a660-46b6-ba58-3ce4d21d5678",
"externalId": "LP4471",
"title": "Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle",
"description": "A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.",
"contentWebUrl": "https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/",
"sourceName": "MsLearn",
"thumbnailWebUrl": "https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF",
"languageTag": "en-us",
"numberOfPages": 9,
"duration": "PT20M",
"format": "Book",
"level": "Beginner",
"createdDateTime": "2018-01-01T00:00:00",
"lastModifiedDateTime": "2021-04-01T04:26:06.1995367Z",
"contributors": [
"Lina Wagner",
"Lisa Richter"
],
"additionalTags": [
"Create private or public teams",
"Add members to teams"
],
"skillTags": [
"Create teams",
"Teams channels",
"Teams members"
],
"isActive": true,
"isPremium": false,
"isSearchable": true
}
例 2: 外部 ID に基づいて学習コンテンツのメタデータを更新する
次の例は、外部 ID (セカンダリ キー) に基づいて学習コンテンツのメタデータを更新する要求を示しています。
PATCH https://graph.microsoft.com/v1.0/employeeExperience/learningProviders/13727311-e7bb-470d-8b20-6a23d9030d70/learningContents(externalId='LP4471')
Content-Type: application/json
{
"title": "Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle",
"description": "A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.",
"contentWebUrl": "https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/",
"sourceName": "MsLearn",
"thumbnailWebUrl": "https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF",
"languageTag": "en-us",
"numberOfPages": 9,
"duration": "PT20M",
"format": "Book",
"level": "Beginner",
"createdDateTime": "2018-01-01T00:00:00",
"lastModifiedDateTime": "2021-04-01T04:26:06.1995367Z",
"contributors": [
"Lina Wagner",
"Lisa Richter"
],
"additionalTags": [
"Create private or public teams",
"Add members to teams"
],
"skillTags": [
"Create teams",
"Teams channels",
"Teams members"
],
"isActive": true,
"isPremium": false,
"isSearchable": true
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new LearningContent
{
Title = "Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle",
Description = "A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.",
ContentWebUrl = "https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/",
SourceName = "MsLearn",
ThumbnailWebUrl = "https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF",
LanguageTag = "en-us",
NumberOfPages = 9,
Duration = TimeSpan.Parse("PT20M"),
Format = "Book",
Level = Level.Beginner,
CreatedDateTime = DateTimeOffset.Parse("2018-01-01T00:00:00"),
LastModifiedDateTime = DateTimeOffset.Parse("2021-04-01T04:26:06.1995367Z"),
Contributors = new List<string>
{
"Lina Wagner",
"Lisa Richter",
},
AdditionalTags = new List<string>
{
"Create private or public teams",
"Add members to teams",
},
SkillTags = new List<string>
{
"Create teams",
"Teams channels",
"Teams members",
},
IsActive = true,
IsPremium = false,
IsSearchable = true,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.EmployeeExperience.LearningProviders["{learningProvider-id}"].LearningContentsWithExternalId("{externalId}").PatchAsync(requestBody);
mgc employee-experience learning-providers learning-contents-with-external-id patch --external-id {external-id} --learning-provider-id {learningProvider-id} --body '{\
"title": "Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle",\
"description": "A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.",\
"contentWebUrl": "https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/",\
"sourceName": "MsLearn",\
"thumbnailWebUrl": "https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF",\
"languageTag": "en-us",\
"numberOfPages": 9,\
"duration": "PT20M",\
"format": "Book",\
"level": "Beginner",\
"createdDateTime": "2018-01-01T00:00:00",\
"lastModifiedDateTime": "2021-04-01T04:26:06.1995367Z",\
"contributors": [\
"Lina Wagner",\
"Lisa Richter"\
],\
"additionalTags": [\
"Create private or public teams",\
"Add members to teams"\
],\
"skillTags": [\
"Create teams",\
"Teams channels",\
"Teams members"\
],\
"isActive": true,\
"isPremium": false,\
"isSearchable": true\
}\
'
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
LearningContent learningContent = new LearningContent();
learningContent.setTitle("Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle");
learningContent.setDescription("A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.");
learningContent.setContentWebUrl("https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/");
learningContent.setSourceName("MsLearn");
learningContent.setThumbnailWebUrl("https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF");
learningContent.setLanguageTag("en-us");
learningContent.setNumberOfPages(9);
PeriodAndDuration duration = PeriodAndDuration.ofDuration(Duration.parse("PT20M"));
learningContent.setDuration(duration);
learningContent.setFormat("Book");
learningContent.setLevel(Level.Beginner);
OffsetDateTime createdDateTime = OffsetDateTime.parse("2018-01-01T00:00:00");
learningContent.setCreatedDateTime(createdDateTime);
OffsetDateTime lastModifiedDateTime = OffsetDateTime.parse("2021-04-01T04:26:06.1995367Z");
learningContent.setLastModifiedDateTime(lastModifiedDateTime);
LinkedList<String> contributors = new LinkedList<String>();
contributors.add("Lina Wagner");
contributors.add("Lisa Richter");
learningContent.setContributors(contributors);
LinkedList<String> additionalTags = new LinkedList<String>();
additionalTags.add("Create private or public teams");
additionalTags.add("Add members to teams");
learningContent.setAdditionalTags(additionalTags);
LinkedList<String> skillTags = new LinkedList<String>();
skillTags.add("Create teams");
skillTags.add("Teams channels");
skillTags.add("Teams members");
learningContent.setSkillTags(skillTags);
learningContent.setIsActive(true);
learningContent.setIsPremium(false);
learningContent.setIsSearchable(true);
LearningContent result = graphClient.employeeExperience().learningProviders().byLearningProviderId("{learningProvider-id}").learningContentsWithExternalId("{externalId}").patch(learningContent);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\LearningContent;
use Microsoft\Graph\Generated\Models\Level;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new LearningContent();
$requestBody->setTitle('Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle');
$requestBody->setDescription('A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.');
$requestBody->setContentWebUrl('https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/');
$requestBody->setSourceName('MsLearn');
$requestBody->setThumbnailWebUrl('https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF');
$requestBody->setLanguageTag('en-us');
$requestBody->setNumberOfPages(9);
$requestBody->setDuration(new \DateInterval('PT20M'));
$requestBody->setFormat('Book');
$requestBody->setLevel(new Level('beginner'));
$requestBody->setCreatedDateTime(new \DateTime('2018-01-01T00:00:00'));
$requestBody->setLastModifiedDateTime(new \DateTime('2021-04-01T04:26:06.1995367Z'));
$requestBody->setContributors(['Lina Wagner', 'Lisa Richter', ]);
$requestBody->setAdditionalTags(['Create private or public teams', 'Add members to teams', ]);
$requestBody->setSkillTags(['Create teams', 'Teams channels', 'Teams members', ]);
$requestBody->setIsActive(true);
$requestBody->setIsPremium(false);
$requestBody->setIsSearchable(true);
$result = $graphServiceClient->employeeExperience()->learningProviders()->byLearningProviderId('learningProvider-id')->learningContentsWithExternalId('{externalId}', )->patch($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.learning_content import LearningContent
from msgraph.generated.models.level import Level
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = LearningContent(
title = "Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle",
description = "A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.",
content_web_url = "https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/",
source_name = "MsLearn",
thumbnail_web_url = "https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF",
language_tag = "en-us",
number_of_pages = 9,
duration = "PT20M",
format = "Book",
level = Level.Beginner,
created_date_time = "2018-01-01T00:00:00",
last_modified_date_time = "2021-04-01T04:26:06.1995367Z",
contributors = [
"Lina Wagner",
"Lisa Richter",
],
additional_tags = [
"Create private or public teams",
"Add members to teams",
],
skill_tags = [
"Create teams",
"Teams channels",
"Teams members",
],
is_active = True,
is_premium = False,
is_searchable = True,
)
result = await graph_client.employee_experience.learning_providers.by_learning_provider_id('learningProvider-id').learning_contents_with_external_id("{externalId}").patch(request_body)
HTTP/1.1 202 Accepted
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#learningProviders('13727311-e7bb-470d-8b20-6a23d9030d70')/learningContents/$entity",
"id": "77029588-a660-46b6-ba58-3ce4d21d5678",
"externalId": "LP4471",
"title": "Manage classes, resources, assessment, and planning in Microsoft Teams with Beedle",
"description": "A module to guide users through the various teaching and learning enhancements that Beedle provides within Microsoft Teams, with many examples of everyday application.",
"contentWebUrl": "https://learn.microsoft.com/learn/modules/manage-classes-resources-assessment-planning-beedle/",
"sourceName": "MsLearn",
"thumbnailWebUrl": "https://syndetics.com/index.aspx?isbn=9783319672175/LC.GIF",
"languageTag": "en-us",
"numberOfPages": 9,
"duration": "PT20M",
"format": "Book",
"level": "Beginner",
"createdDateTime": "2018-01-01T00:00:00",
"lastModifiedDateTime": "2021-04-01T04:26:06.1995367Z",
"contributors": [
"Lina Wagner",
"Lisa Richter"
],
"additionalTags": [
"Create private or public teams",
"Add members to teams"
],
"skillTags": [
"Create teams",
"Teams channels",
"Teams members"
],
"isActive": true,
"isPremium": false,
"isSearchable": true
}