Editing Excluded Items
You can edit a list of items that have been excluded from the retention policy for the specified organization.
The request header must contain an authorization token of the current session.
The following parameter must be specified in the URL of the request:
Specifies the identification number of the Microsoft 365 organization. For more information on how to get this parameter, see Getting Organizations.
The request body must contain the following properties:
Defines whether to exclude the Contacts folder from the retention policy list.
Defines whether to exclude the Calendar from the retention policy list.
The server returns the following response to the client.
A successfully completed operation returns a response code 200 OK.
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
The length of the response body.
The media type and syntax of the response body message: application/json; charset=utf-8
The example shows how to update the backup exclusion settings.
Authorization: Bearer <Access-Token>