Edit an existing share with a user or group.
List of shares -> add pencil icon
Permission: libre.graph/driveItem/permissions/update
By clicking the pencil icon, same view as Create is displayed, with the existing permission selected and the expiration date.
Both permission and expiration date could be changed:
- Permission is mandatory, so, it's not allowed to be empty
- Expiration date could be emptied
Request:
PATCH https://xx.xx.xx.xx:9200/graph/v1beta1/drives/<drive-id>/items/<item-id>/permissions/<share-id>
with body:
{
"roles": [
"b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5"
],
"expirationDateTime": "2026-07-29T12:57:30.830Z"
}
if only one of the fields changed, that field included. If expirationDateTime was removed, add null value
share-id is returned when the share is created, and also fetched in the list of shares.
Custom spaces
only Managers are allowed to
It could be findings regarding refactors of existing code for space management. Add to the #4949 issue.
TASKS
Edit an existing share with a user or group.
List of shares -> add pencil icon
Permission:
libre.graph/driveItem/permissions/updateBy clicking the pencil icon, same view as
Createis displayed, with the existing permission selected and the expiration date.Both permission and expiration date could be changed:
Request:
PATCH https://xx.xx.xx.xx:9200/graph/v1beta1/drives/<drive-id>/items/<item-id>/permissions/<share-id>with body:
if only one of the fields changed, that field included. If
expirationDateTimewas removed, addnullvalueshare-idis returned when the share is created, and also fetched in the list of shares.Custom spaces
only
Managersare allowed toIt could be findings regarding refactors of existing code for space management. Add to the #4949 issue.
TASKS