PATCH https://graph.microsoft.com/beta/users/{userId}/profile/awards/{personAwardId}
Content-Type: application/json
{
"issuingAuthority": "International Association of Branding Management",
"thumbnailUrl": "https://iabm.io/sdhdfhsdhshsd.jpg"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
var requestBody = new PersonAward
{
IssuingAuthority = "International Association of Branding Management",
ThumbnailUrl = "https://iabm.io/sdhdfhsdhshsd.jpg",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Users["{user-id}"].Profile.Awards["{personAward-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.NewPersonAward()
issuingAuthority := "International Association of Branding Management"
requestBody.SetIssuingAuthority(&issuingAuthority)
thumbnailUrl := "https://iabm.io/sdhdfhsdhshsd.jpg"
requestBody.SetThumbnailUrl(&thumbnailUrl)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
awards, err := graphClient.Users().ByUserId("user-id").Profile().Awards().ByPersonAwardId("personAward-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);
PersonAward personAward = new PersonAward();
personAward.setIssuingAuthority("International Association of Branding Management");
personAward.setThumbnailUrl("https://iabm.io/sdhdfhsdhshsd.jpg");
PersonAward result = graphClient.users().byUserId("{user-id}").profile().awards().byPersonAwardId("{personAward-id}").patch(personAward);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\PersonAward;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new PersonAward();
$requestBody->setIssuingAuthority('International Association of Branding Management');
$requestBody->setThumbnailUrl('https://iabm.io/sdhdfhsdhshsd.jpg');
$result = $graphServiceClient->users()->byUserId('user-id')->profile()->awards()->byPersonAwardId('personAward-id')->patch($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.person_award import PersonAward
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = PersonAward(
issuing_authority = "International Association of Branding Management",
thumbnail_url = "https://iabm.io/sdhdfhsdhshsd.jpg",
)
result = await graph_client.users.by_user_id('user-id').profile.awards.by_person_award_id('personAward-id').patch(request_body)