PATCH https://graph.microsoft.com/beta/me/profile/websites/{id}
Content-type: application/json
{
"description": "Lyn Damer play in the Women's 1st Division (Toppserien) in Norway"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
var requestBody = new PersonWebsite
{
Description = "Lyn Damer play in the Women's 1st Division (Toppserien) in Norway",
};
// 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.Websites["{personWebsite-id}"].PatchAsync(requestBody);
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc-beta users profile websites patch --user-id {user-id} --person-website-id {personWebsite-id} --body '{\
"description": "Lyn Damer play in the Women's 1st Division (Toppserien) in Norway"\
}\
'
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
PersonWebsite personWebsite = new PersonWebsite();
personWebsite.setDescription("Lyn Damer play in the Women's 1st Division (Toppserien) in Norway");
PersonWebsite result = graphClient.me().profile().websites().byPersonWebsiteId("{personWebsite-id}").patch(personWebsite);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\PersonWebsite;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new PersonWebsite();
$requestBody->setDescription('Lyn Damer play in the Women\'s 1st Division (Toppserien) in Norway');
$result = $graphServiceClient->me()->profile()->websites()->byPersonWebsiteId('personWebsite-id')->patch($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.People
$params = @{
description = "Lyn Damer play in the Women's 1st Division (Toppserien) in Norway"
}
# A UPN can also be used as -UserId.
Update-MgBetaUserProfileWebsite -UserId $userId -PersonWebsiteId $personWebsiteId -BodyParameter $params
from msgraph import GraphServiceClient
from msgraph.generated.models.person_website import PersonWebsite
graph_client = GraphServiceClient(credentials, scopes)
request_body = PersonWebsite(
description = "Lyn Damer play in the Women's 1st Division (Toppserien) in Norway",
)
result = await graph_client.me.profile.websites.by_person_website_id('personWebsite-id').patch(request_body)