| 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 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Update the properties of a sharePointGroup object.
[!INCLUDE national-cloud-support]
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.
PATCH /storage/fileStorage/containers/{fileStorageContainerId}/sharePointGroups/{sharePointGroupId}| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
[!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. |
If successful, this method returns a 200 OK response code and an updated sharePointGroup object in the response body.
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]
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"
}