// 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",
},
Proficiency = SkillProficiencyLevel.AdvancedProfessional,
};
// 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["{skillProficiency-id}"].PatchAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphmodels "github.com/microsoftgraph/msgraph-beta-sdk-go/models"
//other-imports
)
requestBody := graphmodels.NewSkillProficiency()
categories := []string {
"Professional",
}
requestBody.SetCategories(categories)
proficiency := graphmodels.ADVANCEDPROFESSIONAL_SKILLPROFICIENCYLEVEL
requestBody.SetProficiency(&proficiency)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
skills, err := graphClient.Me().Profile().Skills().BySkillProficiencyId("skillProficiency-id").Patch(context.Background(), requestBody, nil)
// 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.setProficiency(SkillProficiencyLevel.AdvancedProfessional);
SkillProficiency result = graphClient.me().profile().skills().bySkillProficiencyId("{skillProficiency-id}").patch(skillProficiency);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\SkillProficiency;
use Microsoft\Graph\Beta\Generated\Models\SkillProficiencyLevel;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new SkillProficiency();
$requestBody->setCategories(['Professional', ]);
$requestBody->setProficiency(new SkillProficiencyLevel('advancedProfessional'));
$result = $graphServiceClient->me()->profile()->skills()->bySkillProficiencyId('skillProficiency-id')->patch($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.People
$params = @{
categories = @(
"Professional"
)
proficiency = "advancedProfessional"
}
# A UPN can also be used as -UserId.
Update-MgBetaUserProfileSkill -UserId $userId -SkillProficiencyId $skillProficiencyId -BodyParameter $params
# 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.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",
],
proficiency = SkillProficiencyLevel.AdvancedProfessional,
)
result = await graph_client.me.profile.skills.by_skill_proficiency_id('skillProficiency-id').patch(request_body)