List customQuestions
Namespace: microsoft.graph
Get the bookingCustomQuestion resources associated with a bookingBusiness.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | BookingsAppointment.ReadWrite.All, Bookings.ReadWrite.All, Bookings.Manage.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Not supported. |
HTTP request
GET /solutions/bookingBusinesses/{bookingBusinessesId}/customQuestions
Optional query parameters
This method supports some of the OData query parameters to help customize the response. For general information, see $count and $expand OData query parameters.
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a collection of bookingCustomQuestion objects in the response body.
Examples
Request
GET https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/Contosolunchdelivery@contoso.onmicrosoft.com/customQuestions
Response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": [
{
"@odata.type": "#microsoft.graph.bookingCustomQuestion",
"id": "3bc6fde0-4ad3-445d-ab17-0fc15dba0774",
"displayName": "What is your age?",
"answerInputType": "text",
"answerOptions": [],
},
{
"@odata.type": "#microsoft.graph.bookingCustomQuestion",
"id": "dbb865a6-530d-46e1-8e88-5d76789034b2",
"displayName": "What is your nationality?",
"answerInputType": "radioButton",
"answerOptions": [
"US",
"UK",
"Canada",
"India"
],
}
]
}
Feedback
Submit and view feedback for