group: addFavorite

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

Add the group to the list of the current user's favorite groups. Supported for only Office 365 groups.


One of the following scopes is required to execute this API: Group.ReadWrite.All

HTTP request

POST /groups/{id}/addFavorite

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.


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