Skip to content

[FEATURE REQUEST] Create a link over a space #4753

@jesmrec

Description

@jesmrec

Add a new link is only allowed for Space managers, same as Members.

iOS example:

Image
  • Header with item info
  • Form
    • Name (optional): max 255 chars
    • Permissions: Can View Can Edit Secret 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.

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/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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions