update_share
Update an existing share's permissions, password, expiration, note, label, or upload options, while preserving any unspecified settings.
Instructions
Update properties of an existing share.
Only provided parameters are changed. Omitted parameters keep their current value.
Args: share_id: The numeric share ID to update. permissions: New permission flags (1=read, 2=update, 4=create, 8=delete, 16=share). password: Set or change password (link/email shares only). Pass "" to remove password. expire_date: Set expiration in "YYYY-MM-DD" format. Pass "" to remove expiration. note: Set or update the share note. Pass "" to clear. label: Set or update the share label. Pass "" to clear. public_upload: Enable (true) or disable (false) public upload on shared folders (link shares only). hide_download: Show (false) or hide (true) the download button on public link shares.
Returns: JSON object with the updated share details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| label | No | ||
| password | No | ||
| share_id | Yes | ||
| expire_date | No | ||
| permissions | No | ||
| hide_download | No | ||
| public_upload | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |