// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
var requestBody = new MeetingRegistration
{
Subject = "Microsoft Ignite: Day 1",
StartDateTime = DateTimeOffset.Parse("2021-11-02T08:00:00-08:00"),
EndDateTime = DateTimeOffset.Parse("2021-11-02T15:45:00-08:00"),
Speakers = new List<MeetingSpeaker>
{
new MeetingSpeaker
{
DisplayName = "Henry Ross",
Bio = "Chairman and Chief Executive Officer",
},
new MeetingSpeaker
{
DisplayName = "Fred Ryan",
Bio = "CVP",
},
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Me.OnlineMeetings["{onlineMeeting-id}"].Registration.PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
MeetingRegistration meetingRegistration = new MeetingRegistration();
meetingRegistration.setSubject("Microsoft Ignite: Day 1");
OffsetDateTime startDateTime = OffsetDateTime.parse("2021-11-02T08:00:00-08:00");
meetingRegistration.setStartDateTime(startDateTime);
OffsetDateTime endDateTime = OffsetDateTime.parse("2021-11-02T15:45:00-08:00");
meetingRegistration.setEndDateTime(endDateTime);
LinkedList<MeetingSpeaker> speakers = new LinkedList<MeetingSpeaker>();
MeetingSpeaker meetingSpeaker = new MeetingSpeaker();
meetingSpeaker.setDisplayName("Henry Ross");
meetingSpeaker.setBio("Chairman and Chief Executive Officer");
speakers.add(meetingSpeaker);
MeetingSpeaker meetingSpeaker1 = new MeetingSpeaker();
meetingSpeaker1.setDisplayName("Fred Ryan");
meetingSpeaker1.setBio("CVP");
speakers.add(meetingSpeaker1);
meetingRegistration.setSpeakers(speakers);
MeetingRegistration result = graphClient.me().onlineMeetings().byOnlineMeetingId("{onlineMeeting-id}").registration().patch(meetingRegistration);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.meeting_registration import MeetingRegistration
from msgraph_beta.generated.models.meeting_speaker import MeetingSpeaker
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = MeetingRegistration(
subject = "Microsoft Ignite: Day 1",
start_date_time = "2021-11-02T08:00:00-08:00",
end_date_time = "2021-11-02T15:45:00-08:00",
speakers = [
MeetingSpeaker(
display_name = "Henry Ross",
bio = "Chairman and Chief Executive Officer",
),
MeetingSpeaker(
display_name = "Fred Ryan",
bio = "CVP",
),
],
)
result = await graph_client.me.online_meetings.by_online_meeting_id('onlineMeeting-id').registration.patch(request_body)