Edit the existing link:
- Name (optional) -> Max 255 chars
- Level of permission (mandatory)
- Password (not always mandatory, depends on capabilities) -> Apply password policy
- Expiration date (optional)
Edit link option will be only available for Space managers users
- Permission required:
libre.graph/driveItem/permissions/update
A pencil icon to be added to the link row, so, the link view is opened and user is able to modify the existing values after clicking on a Save button. A Cancel option also available to close the view and keep the values before edition.
Extra: clicking on the cell could open the link to be edited.
Extra II: In the view to edit the link, add an option to copy the link to the clipboard.
REQUEST
- With no password change (name, permission, expiration)
PATCH https://<url>/graph/v1beta1/drives/<drive-id>/root/permissions/<link-id>
with the following body:
{
"expirationDateTime": "2026-01-31T08:30:00.000Z",
"link": {
"@libre.graph.displayName": "NewName",
"type": "createOnly"
}
}
only required the changed values.
- Password change
POST https://<url>/graph/v1beta1/drives/<drive-id>/root/permissions/<link-id>/setPassword
with the following body:
{
"password": "<newPassword>"
}
Response body (in both cases) - Not needed in this issue ❌
{
"createdDateTime": "2025-12-18T13:13:01.272005287Z",
"expirationDateTime": "2026-01-29T08:30:00Z",
"hasPassword": true,
"id": "vOUEFZzkFvEClJL",
"link": {
"@libre.graph.displayName": "name",
"@libre.graph.quickLink": false,
"preventsDownload": false,
"type": "view",
"webUrl": "https://<url>/s/aMhKFSTbWlFIXQb"
}
}
After correct edition, view closed and refreshed list of links/members displayed.
TASKS
Edit the existing link:
Edit link option will be only available for
Space managersuserslibre.graph/driveItem/permissions/updateA pencil icon to be added to the link row, so, the link view is opened and user is able to modify the existing values after clicking on a
Savebutton. ACanceloption also available to close the view and keep the values before edition.Extra: clicking on the cell could open the link to be edited.
Extra II: In the view to edit the link, add an option to copy the link to the clipboard.
REQUEST
PATCH https://<url>/graph/v1beta1/drives/<drive-id>/root/permissions/<link-id>with the following body:
only required the changed values.
POST https://<url>/graph/v1beta1/drives/<drive-id>/root/permissions/<link-id>/setPasswordwith the following body:
Response body (in both cases) - Not needed in this issue ❌
After correct edition, view closed and refreshed list of links/members displayed.
TASKS