photo_share_link
Share a Synology Photos album by link, set public view or download access, password, expiry and members, update existing links, or stop sharing.
Instructions
Share a Synology Photos album by link, change the link's public access, password, expiry and members, or stop sharing. A password or an expiry needs public view or download: Photos drops them on a link without public access, so they're refused there. Stopping keeps the link, and sharing again brings it back with its settings reset. Personal space albums only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "photo_share_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | `share` (turns the link on, public access `none` unless given; returns the link), `update` (an album already shared) or `stop` (turns it off; no settings). | |
| public | No | What anyone with the link can do: `none` (invited members only), `view` or `download`. `none` also clears the password and expiry. | |
| expires | No | Link expiry: `YYYY-MM-DD` (end of that day, UTC), a date-time with offset (`2026-12-31T18:00-05:00`) or `never`. Except `never`, needs public `view` or `download`. | |
| members | No | DSM users or groups, each `{"name": ..., "type": "user" (default) or "group", "role": "view" (default), "download", "upload" or "none" (removes)}`. | |
| album_id | No | Album ID (list_photo_collections type=album). | |
| password | No | Link password; `""` removes it. Needs public `view` or `download`. | |
| album_name | No | Or the album's name, case ignored; not with album_id. |