group: renew

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

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 /groups/{id}/renew

Request headers

Name Description
Authorization Bearer {token}

Request body

Do not supply a request body for this method.

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/v1.0/groups/{id}/renew
Response

Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 204 No Content

SDK sample code


GraphServiceClient graphClient = new GraphServiceClient( authProvider );

await graphClient.Groups["{id}"]
	.Renew()
	.Request()
	.PostAsync()

Read the SDK documentation for details on how to add the SDK to your project and create an authProvider instance.