---
title: "Update share-link"
method: PUT
path: "/2/drive/{drive_id}/files/{file_id}/link"
tags: ["Drive > Files > Share link > Manage"]
---

# Update share-link

`PUT /2/drive/{drive_id}/files/{file_id}/link`

Update a share-link

## Path parameters

- `drive_id` integer, required
- `file_id` integer, required

## Request body

- object
  - `can_comment` boolean — Allow users to to comment the shared files. It takes the same value as can_edit if unset or null
  - `can_download` boolean — Allow users to download shared content
  - `can_edit` boolean — Allow users to edit the file content using the shared link
  - `can_request_access` boolean — Allow connected users to join the folder via the shared link. It is not possible to join a file via a shared link
  - `can_see_info` boolean — Allow users to see information about the shared files
  - `can_see_stats` boolean — Allow users to see statistics
  - `password` string — The password if the permission password is set
  - `right` 'inherit' | 'password' | 'public'
  - `valid_until` integer, nullable — Maximum validity timestamp of the shared link

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` boolean

## Other responses

- `403` — Forbidden
- `503` — Service Unavailable

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
