group: unsubscribeByMail

Calling this method will prevent the current user from receiving email notifications for this group about new posts, events, and files in that group. Supported for only Office 365 groups.


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

HTTP request

POST /groups/{id}/unsubscribeByMail

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body


If successful, this method returns 200, OK response code. It does not return anything in the response body.


Here is an example of how to call this API.


Here is an example of the request.


Here is an example of the response.

HTTP/1.1 200 OK