-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Edit the existing link:
- name (optional)
- level of permission (mandatory)
- password (mandatory)
- expiration date
Only for Space managers
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.
Rules are the same as in creation: permission mandatory, password mandatory with policy applied, and name optional with max 255 chars.
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.
Requests to edit
- With no password change (name, permission, expiration)
PATCH https://<url>/graph/v1beta1/drives/<drive-id>/root/permissions/<link-id>
with 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 body:
{
"password": "<newPassword>"
}
in both cases, the response body like:
{
"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
- Research (if needed)
- Create branch feature/feature_name
- Development tasks
- Implement whatever
- ...
- Implement unit tests (if needed)
- Code review and apply changes requested
- Design test plan
- QA
- Merge branch feature/feature_name into master