admin管理员组文章数量:1415684
How am I supposed to update customQuestionAnswers on a Booking Appointment in the Microsoft Graph API? This is what I've tried:
PATCH .0/solutions/bookingBusinesses/<businessId>/appointments/<appointmentId>
{
"@odata.type": "#microsoft.graph.bookingAppointment",
"customers": [
{
"@odata.type": "#microsoft.graph.bookingCustomerInformation",
"customerId": "<my-customer-id>",
"emailAddress": "[email protected]",
"location": null,
"name": "Test Testson",
"notes": "",
"phone": null,
"timeZone": null,
"customQuestionAnswers": [
{
"@odata.type": "microsoft.graph.bookingQuestionAnswer",
"questionId": "9f66cb07-abbc-4427-b3ea-b6a4da80d10d",
"isRequired": true,
"selectedOptions": [
"Video"
],
"question": "Mötestyp",
"answerOptions": [
"Video",
"Telefon"
],
"answerInputType": "radioButton"
}
]
}
]
}
This results in the following error:
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2025-02-11T12:40:27",
"request-id": "f10492fe-93f6-42b7-8cc4-f675fa705e47",
"client-request-id": "f713f76d-c962-a2e9-8694-7fafa2f83eb1"
}
}
}
Removing the customQuestionAnswers block "solves" the issue.
How am I supposed to update customQuestionAnswers on a Booking Appointment in the Microsoft Graph API? This is what I've tried:
PATCH https://graph.microsoft/v1.0/solutions/bookingBusinesses/<businessId>/appointments/<appointmentId>
{
"@odata.type": "#microsoft.graph.bookingAppointment",
"customers": [
{
"@odata.type": "#microsoft.graph.bookingCustomerInformation",
"customerId": "<my-customer-id>",
"emailAddress": "[email protected]",
"location": null,
"name": "Test Testson",
"notes": "",
"phone": null,
"timeZone": null,
"customQuestionAnswers": [
{
"@odata.type": "microsoft.graph.bookingQuestionAnswer",
"questionId": "9f66cb07-abbc-4427-b3ea-b6a4da80d10d",
"isRequired": true,
"selectedOptions": [
"Video"
],
"question": "Mötestyp",
"answerOptions": [
"Video",
"Telefon"
],
"answerInputType": "radioButton"
}
]
}
]
}
This results in the following error:
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2025-02-11T12:40:27",
"request-id": "f10492fe-93f6-42b7-8cc4-f675fa705e47",
"client-request-id": "f713f76d-c962-a2e9-8694-7fafa2f83eb1"
}
}
}
Removing the customQuestionAnswers block "solves" the issue.
Share Improve this question asked Feb 11 at 12:50 Oskar PerssonOskar Persson 6,76517 gold badges70 silver badges133 bronze badges1 Answer
Reset to default 1I think you are missing the answer
property for the bookingQuestionAnswer
. The value of the answer
property cannot be null. It must be at least empty string.
{
"@odata.type": "#microsoft.graph.bookingAppointment",
"customers": [
{
"@odata.type": "#microsoft.graph.bookingCustomerInformation",
"customerId": "<my-customer-id>",
"emailAddress": "[email protected]",
"location": null,
"name": "Test Testson",
"notes": "",
"phone": null,
"timeZone": null,
"customQuestionAnswers": [
{
"@odata.type": "microsoft.graph.bookingQuestionAnswer",
"questionId": "9f66cb07-abbc-4427-b3ea-b6a4da80d10d",
"isRequired": true,
"selectedOptions": [
"Video"
],
"question": "Mötestyp",
"answerOptions": [
"Video",
"Telefon"
],
"answerInputType": "radioButton",
"answer": ""
}
]
}
]
}
本文标签: Cannot update customQuestionAnswers in Microsoft Booking with Graph APIStack Overflow
版权声明:本文标题:Cannot update customQuestionAnswers in Microsoft Booking with Graph API - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745210526a2647856.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论