List bookingBusinesses
Namespace: microsoft.graph
Get a collection of bookingBusiness objects that has been created for the tenant.
This operation returns only the id and displayName of each Microsoft Bookings business in the collection. For performance considerations, it does not return other properties. You can get the other properties of a Bookings business by specifying its id in a GET operation.
Note: Results are limited to 500 mailboxes. Pagination of the results is not currently supported.
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) | Bookings.Read.All, BookingsAppointment.ReadWrite.All, Bookings.ReadWrite.All, Bookings.Manage.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Not supported. |
HTTP request
GET /solutions/bookingBusinesses
Optional query parameters
This method supports the $count
and $expand
OData query parameters to help customize the response.
This method also supports the query
parameter which accepts a string value. This parameter limits the GET results to businesses that match the specified string. For more details, see Example 2.
Request headers
Name | Description |
---|---|
Authorization | Bearer {code} |
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 bookingBusiness objects in the response body.
Examples
Example 1: Get Bookings businesses in a tenant
Request
The following example gets the Bookings businesses in a tenant.
GET https://graph.microsoft.com/v1.0/solutions/bookingBusinesses
Response
The following is an example of the response.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context":"https://graph.microsoft.com/v1.0/solutions/$metadata#bookingBusinesses",
"value":[
{
"id":"Contosolunchdelivery@contoso.onmicrosoft.com",
"displayName":"Contoso lunch delivery",
},
{
"id":"Fabrikam@contoso.onmicrosoft.com",
"displayName":"Fabrikam",
}
]
}
Example 2: Use 'query' to get one or more matching Bookings businesses in a tenant
Request
The following example shows how to use the query
parameter to get one or more matching Bookings businesses in the tenant.
GET https://graph.microsoft.com/v1.0/solutions/bookingBusinesses?query=Adventure
Response
The following is an example of the response.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context":"https://graph.microsoft.com/v1.0/solutions/$metadata#bookingBusinesses",
"value":[
{
"id":"AdventureWorksCycles@M365B960066.onmicrosoft.com",
"displayName":"Adventure Works Cycles",
}
]
}
Feedback
Submit and view feedback for