PATCH https://graph.microsoft.com/beta/users/{userId}/profile/publications/{id}
Content-Type: application/json
{
"publisher": "International Association of Branding Management Publishing",
"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 ItemPublication
{
Publisher = "International Association of Branding Management Publishing",
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.Publications["{itemPublication-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.NewItemPublication()
publisher := "International Association of Branding Management Publishing"
requestBody.SetPublisher(&publisher)
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
publications, err := graphClient.Users().ByUserId("user-id").Profile().Publications().ByItemPublicationId("itemPublication-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);
ItemPublication itemPublication = new ItemPublication();
itemPublication.setPublisher("International Association of Branding Management Publishing");
itemPublication.setThumbnailUrl("https://iabm.io/sdhdfhsdhshsd.jpg");
ItemPublication result = graphClient.users().byUserId("{user-id}").profile().publications().byItemPublicationId("{itemPublication-id}").patch(itemPublication);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\ItemPublication;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new ItemPublication();
$requestBody->setPublisher('International Association of Branding Management Publishing');
$requestBody->setThumbnailUrl('https://iabm.io/sdhdfhsdhshsd.jpg');
$result = $graphServiceClient->users()->byUserId('user-id')->profile()->publications()->byItemPublicationId('itemPublication-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.item_publication import ItemPublication
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ItemPublication(
publisher = "International Association of Branding Management Publishing",
thumbnail_url = "https://iabm.io/sdhdfhsdhshsd.jpg",
)
result = await graph_client.users.by_user_id('user-id').profile.publications.by_item_publication_id('itemPublication-id').patch(request_body)