Dans le corps de la demande, fournissez uniquement les valeurs des propriétés à mettre à jour. Les propriétés existantes qui ne sont pas incluses dans le corps de la demande conservent leurs valeurs précédentes ou sont recalculées en fonction des modifications apportées à d’autres valeurs de propriété.
Le tableau suivant spécifie les propriétés qui peuvent être mises à jour.
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new VirtualEventPresenter
{
PresenterDetails = new VirtualEventPresenterDetails
{
Bio = new ItemBody
{
Content = "Lead Product Manager of Contoso Sales department",
ContentType = BodyType.Text,
},
Company = "Contoso",
JobTitle = "Product Manager",
LinkedInProfileWebUrl = "https://linkedin.com/in/DianeDemoss",
PersonalSiteWebUrl = "https://DianeDemoss.com",
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Solutions.VirtualEvents.Webinars["{virtualEventWebinar-id}"].Presenters["{virtualEventPresenter-id}"].PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
VirtualEventPresenter virtualEventPresenter = new VirtualEventPresenter();
VirtualEventPresenterDetails presenterDetails = new VirtualEventPresenterDetails();
ItemBody bio = new ItemBody();
bio.setContent("Lead Product Manager of Contoso Sales department");
bio.setContentType(BodyType.Text);
presenterDetails.setBio(bio);
presenterDetails.setCompany("Contoso");
presenterDetails.setJobTitle("Product Manager");
presenterDetails.setLinkedInProfileWebUrl("https://linkedin.com/in/DianeDemoss");
presenterDetails.setPersonalSiteWebUrl("https://DianeDemoss.com");
virtualEventPresenter.setPresenterDetails(presenterDetails);
VirtualEventPresenter result = graphClient.solutions().virtualEvents().webinars().byVirtualEventWebinarId("{virtualEventWebinar-id}").presenters().byVirtualEventPresenterId("{virtualEventPresenter-id}").patch(virtualEventPresenter);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\VirtualEventPresenter;
use Microsoft\Graph\Generated\Models\VirtualEventPresenterDetails;
use Microsoft\Graph\Generated\Models\ItemBody;
use Microsoft\Graph\Generated\Models\BodyType;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new VirtualEventPresenter();
$presenterDetails = new VirtualEventPresenterDetails();
$presenterDetailsBio = new ItemBody();
$presenterDetailsBio->setContent('Lead Product Manager of Contoso Sales department');
$presenterDetailsBio->setContentType(new BodyType('text'));
$presenterDetails->setBio($presenterDetailsBio);
$presenterDetails->setCompany('Contoso');
$presenterDetails->setJobTitle('Product Manager');
$presenterDetails->setLinkedInProfileWebUrl('https://linkedin.com/in/DianeDemoss');
$presenterDetails->setPersonalSiteWebUrl('https://DianeDemoss.com');
$requestBody->setPresenterDetails($presenterDetails);
$result = $graphServiceClient->solutions()->virtualEvents()->webinars()->byVirtualEventWebinarId('virtualEventWebinar-id')->presenters()->byVirtualEventPresenterId('virtualEventPresenter-id')->patch($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.virtual_event_presenter import VirtualEventPresenter
from msgraph.generated.models.virtual_event_presenter_details import VirtualEventPresenterDetails
from msgraph.generated.models.item_body import ItemBody
from msgraph.generated.models.body_type import BodyType
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = VirtualEventPresenter(
presenter_details = VirtualEventPresenterDetails(
bio = ItemBody(
content = "Lead Product Manager of Contoso Sales department",
content_type = BodyType.Text,
),
company = "Contoso",
job_title = "Product Manager",
linked_in_profile_web_url = "https://linkedin.com/in/DianeDemoss",
personal_site_web_url = "https://DianeDemoss.com",
),
)
result = await graph_client.solutions.virtual_events.webinars.by_virtual_event_webinar_id('virtualEventWebinar-id').presenters.by_virtual_event_presenter_id('virtualEventPresenter-id').patch(request_body)