Les API sous la version /beta dans Microsoft Graph sont susceptibles d’être modifiées. L’utilisation de ces API dans des applications de production n’est pas prise en charge. Pour déterminer si une API est disponible dans v1.0, utilisez le sélecteur Version .
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.Beta.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\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\VirtualEventPresenter;
use Microsoft\Graph\Beta\Generated\Models\VirtualEventPresenterDetails;
use Microsoft\Graph\Beta\Generated\Models\ItemBody;
use Microsoft\Graph\Beta\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_beta import GraphServiceClient
from msgraph_beta.generated.models.virtual_event_presenter import VirtualEventPresenter
from msgraph_beta.generated.models.virtual_event_presenter_details import VirtualEventPresenterDetails
from msgraph_beta.generated.models.item_body import ItemBody
from msgraph_beta.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)