Skip to content

[FEATURE REQUEST] Edit a link over a space #4756

@jesmrec

Description

@jesmrec

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

  1. 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.

  1. 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

  • Research (if needed)
  • Create branch feature/edit_space_link
  • Development tasks
    • Show pencil button only for space managers
    • Display edit public link view when pencil button is clicked
    • Implement methods and network operation to edit space public links (password not included)
    • Implement methods and network operation to edit password
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/edit_space_link into master

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions