Skip to content

Latest commit

 

History

History
130 lines (96 loc) · 4.74 KB

File metadata and controls

130 lines (96 loc) · 4.74 KB
title Update sharePointGroup
description Update the properties of a sharePointGroup object.
author tmarwendo-microsoft
ms.localizationpriority medium
ms.subservice onedrive
doc_type apiPageType
ms.date 1/31/2025

Update sharePointGroup

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Update the properties of a sharePointGroup object.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

Note

In addition to Microsoft Graph permissions, applications calling this API must at least have the UpdatePermissions container type-level permission on the container type of the corresponding containers. For more information, see container types. To learn more about container type-level permissions, see SharePoint Embedded authorization.

HTTP request

PATCH /storage/fileStorage/containers/{fileStorageContainerId}/sharePointGroups/{sharePointGroupId}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

[!INCLUDE table-intro]

Property Type Description
description String The new description of the sharePointGroup. The description can't be longer than 512 characters. Optional.
title String The new title of the sharePointGroup. The title can't be longer than 255 characters. Optional.

Response

If successful, this method returns a 200 OK response code and an updated sharePointGroup object in the response body.

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/beta/storage/fileStorage/containers/b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z/sharePointGroups/12
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.sharePointGroup",
  "title" : "This is the new group title",
  "description": "Updated group description"
}

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.sharePointGroup",
  "id" : "12",
  "title" : "This is the new group title",
  "description": "Updated group description"
}