Update bookingbusiness

Namespace: microsoft.graph

Update the properties of a bookingBusiness object.

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.ReadWrite.All, Bookings.Manage.All
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP request

PATCH /solutions/bookingBusinesses/{id}

Request headers

Name Description
Authorization Bearer {code}

Request body

In the request body, supply only the values for properties that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values.

The following table specifies the properties that can be updated.

Property Type Description
address physicalAddress The street address of the business. The attribute type of physicalAddress is not supported in v1.0. Internally we map the addresses to the type others.
businessHours bookingWorkHours collection The hours of operation for the business.
businessType String The type of business.
defaultCurrencyIso String The code for the currency that the business operates in on Microsoft Bookings.
displayName String A name for the business that interfaces with customers.
email String The email address for the business.
phone String The telephone number for the business.
schedulingPolicy bookingSchedulingPolicy Specifies how bookings can be created for this business.
webSiteUrl String The URL of the business web site.

Response

If successful, this method returns a 204 No Content response code. It does not return anything in the response body.

Example

Request

The following example updates the business email address and scheduling policy, to change the business default booking time slot to an hour, and advance booking up to 30 days.

PATCH https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/fabrikam@contoso.onmicrosoft.com
Content-type: application/json

{
  "email": "admin@fabrikam.com",
  "schedulingPolicy": {
      "timeSlotInterval": "PT60M",
      "minimumLeadTime": "P1D",
      "maximumAdvance": "P30D",
      "sendConfirmationsToOwner": true,
      "allowStaffSelection": true
  }
}

Response

The following is an example of the response. Note: The response object shown here might be shortened for readability.

HTTP/1.1 204 No Content