// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
var requestBody = new SkillProficiency
{
Categories = new List<string>
{
"Professional",
},
AllowedAudiences = AllowedAudiences.Organization,
DisplayName = "API Design",
Proficiency = SkillProficiencyLevel.GeneralProfessional,
CollaborationTags = new List<string>
{
"ableToMentor",
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Me.Profile.Skills.PostAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
SkillProficiency skillProficiency = new SkillProficiency();
LinkedList<String> categories = new LinkedList<String>();
categories.add("Professional");
skillProficiency.setCategories(categories);
skillProficiency.setAllowedAudiences(EnumSet.of(AllowedAudiences.Organization));
skillProficiency.setDisplayName("API Design");
skillProficiency.setProficiency(SkillProficiencyLevel.GeneralProfessional);
LinkedList<String> collaborationTags = new LinkedList<String>();
collaborationTags.add("ableToMentor");
skillProficiency.setCollaborationTags(collaborationTags);
SkillProficiency result = graphClient.me().profile().skills().post(skillProficiency);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.skill_proficiency import SkillProficiency
from msgraph_beta.generated.models.allowed_audiences import AllowedAudiences
from msgraph_beta.generated.models.skill_proficiency_level import SkillProficiencyLevel
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = SkillProficiency(
categories = [
"Professional",
],
allowed_audiences = AllowedAudiences.Organization,
display_name = "API Design",
proficiency = SkillProficiencyLevel.GeneralProfessional,
collaboration_tags = [
"ableToMentor",
],
)
result = await graph_client.me.profile.skills.post(request_body)