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 propriétés qui doivent être mises à jour dans une représentation JSON d’un objet meetingRegistrationQuestion .
Réponse
Si elle réussit, cette méthode renvoie un 200 OK code de réponse et un objet meetingRegistrationQuestion mis à jour dans le corps de la réponse.
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
var requestBody = new MeetingRegistrationQuestion
{
AnswerInputType = AnswerInputType.RadioButton,
AnswerOptions = new List<string>
{
"Software Engineer",
"Software Development Manager",
"Product Manager",
"Data scientist",
"Other",
},
};
// 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.CustomQuestions["{meetingRegistrationQuestion-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.NewMeetingRegistrationQuestion()
answerInputType := graphmodels.RADIOBUTTON_ANSWERINPUTTYPE
requestBody.SetAnswerInputType(&answerInputType)
answerOptions := []string {
"Software Engineer",
"Software Development Manager",
"Product Manager",
"Data scientist",
"Other",
}
requestBody.SetAnswerOptions(answerOptions)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
customQuestions, err := graphClient.Me().OnlineMeetings().ByOnlineMeetingId("onlineMeeting-id").Registration().CustomQuestions().ByMeetingRegistrationQuestionId("meetingRegistrationQuestion-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);
MeetingRegistrationQuestion meetingRegistrationQuestion = new MeetingRegistrationQuestion();
meetingRegistrationQuestion.setAnswerInputType(AnswerInputType.RadioButton);
LinkedList<String> answerOptions = new LinkedList<String>();
answerOptions.add("Software Engineer");
answerOptions.add("Software Development Manager");
answerOptions.add("Product Manager");
answerOptions.add("Data scientist");
answerOptions.add("Other");
meetingRegistrationQuestion.setAnswerOptions(answerOptions);
MeetingRegistrationQuestion result = graphClient.me().onlineMeetings().byOnlineMeetingId("{onlineMeeting-id}").registration().customQuestions().byMeetingRegistrationQuestionId("{meetingRegistrationQuestion-id}").patch(meetingRegistrationQuestion);
# 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_question import MeetingRegistrationQuestion
from msgraph_beta.generated.models.answer_input_type import AnswerInputType
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = MeetingRegistrationQuestion(
answer_input_type = AnswerInputType.RadioButton,
answer_options = [
"Software Engineer",
"Software Development Manager",
"Product Manager",
"Data scientist",
"Other",
],
)
result = await graph_client.me.online_meetings.by_online_meeting_id('onlineMeeting-id').registration.custom_questions.by_meeting_registration_question_id('meetingRegistrationQuestion-id').patch(request_body)