bookingBusiness: publish

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

Make the scheduling page of this business available to external customers.

Set the isPublished property to true, and publicUrl property to the URL of the scheduling page.

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

HTTP request

POST /bookingBusinesses/{id}/publish

Request headers

Name Description
Authorization Bearer {code}

Request body

Response

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

Example

The following is an example of how to call this API.

Request

The following is an example of the request.

POST https://graph.microsoft.com/beta/bookingBusinesses/Contosolunchdelivery@M365B489948.onmicrosoft.com/publish
Response

The following is an example of the response.

HTTP/1.1 204 No content

SDK sample code


GraphServiceClient graphClient = new GraphServiceClient( authProvider );

await graphClient.BookingBusinesses["Contosolunchdelivery@M365B489948.onmicrosoft.com"]
	.Publish(bookingBusiness)
	.Request()
	.PostAsync();

Read the SDK documentation for details on how to add the SDK to your project and create an authProvider instance.