Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
94 lines (76 sloc) 2.75 KB
title description localization_priority author ms.prod doc_type
bookingBusiness: unpublish
Make the scheduling page of this business not available to external customers.
Normal
angelgolfer-ms
bookings
apiPageType

bookingBusiness: unpublish

[!INCLUDE beta-disclaimer]

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

Set the isPublished property to false, and publicUrl property to null.

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}/unpublish

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.

HTTP

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

C#

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

JavaScript

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

Objective-C

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following is an example of the response.

HTTP/1.1 204 No content
You can’t perform that action at this time.