-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Description
Add a new link is only allowed for Space managers, same as Members.
Permission: libre.graph/driveItem/permissions/create
iOS example:
- Header with item info
- Form
- Name (optional): max 255 chars
- Permissions:
Can ViewCan EditSecret File Drop(hardcoded?) - Password: mandatory if enforced (same as item links, capability-based). Option to copy it to the clipboard.
- Expiration date (optional)
Request to create the link:
iOS way:
POST https://<url>/graph/v1beta1/drives/<drive-id>/items/<item-id>/createLink
web way:
POST https://<url>/graph/v1beta1/drives/<drive-id>/root/createLink
with the following payload:
{
"displayName": "Test",
"expirationDateTime": "2026-01-19T13:14:09.021Z",
"password": "T/Ec90Vo5/!n##1S%x",
"type": "edit"
}
type has three different values: view, edit, createOnly
Permission is always mandatory, so, if it is not checked, the Create button is disabled.
Password, following capability password. It always uses to be true but it should be checked.
Web way preferred as only one parameter is required.
Response body like:
{
"createdDateTime": "2026-01-14T08:40:49.439847853Z",
"expirationDateTime": "2026-01-21T08:40:47.921Z",
"hasPassword": true,
"id": "DDugZscaZAnhDvr",
"link": {
"@libre.graph.displayName": "Name",
"@libre.graph.quickLink": false,
"preventsDownload": false,
"type": "view",
"webUrl": "https://<url>/s/uwNlynuHnkvMtKA"
}
}
After submitting creation, view is closed and the list of links refreshed with the new link
TASKS
- Research (if needed)
- Create branch feature/create_a_link_over_a_space
- Development tasks
- Add
+option to create links (only for users with permissions) - Create the new view/screen for space public links
- ...
- Implement unit tests (if needed)
- Add
- Code review and apply changes requested
- Design test plan
- QA
- Merge branch feature/create_a_link_over_a_space into master
Reactions are currently unavailable