groupLifecyclePolicy: renewGroup

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.

Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy.

Note: In V1.0, use the group resource to make renew requests.

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

HTTP request

POST /groupLifecyclePolicies/renewGroup

Request headers

Name Description
Authorization Bearer {token}. Required.
Content-Type application/json

Request body

In the request body, provide a JSON object with the following parameters.

Parameter Type Description
groupId Guid The id of the group to renew.

Response

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

Example

Request
POST https://graph.microsoft.com/beta/groupLifecyclePolicies/renewGroup
Content-type: application/json
Content-length: 57

{
  "groupId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
}
Response
HTTP/1.1 204 No Content