Change a tracked link's settings
update_shareChanges the settings of a tracked link that has already been sent, on the same link: who can open it (allowed domains and addresses), the email gate and its one-time code, the password, the end date, the copy lock, the label, who the gate names and whether the sender is emailed on the first open. Comments can be on or off; enabling needs a code-confirmed email gate. The answer includes the saved rules. The link, its address and its whole reading history stay the same. Only the settings named in the call change; every other setting is left as it is, and a setting is removed when it is named in clear (a recipient_label of only spaces also removes the label). The list arguments add_allowed_emails, remove_allowed_emails, add_allowed_email_domains and remove_allowed_email_domains: the server merges them over the stored list and says what was added, removed and not found. Replacing or clearing a whole list (sending allowed_emails or allowed_email_domains, or naming one in clear) needs expected_settings_version, the settings version get_share returned, so a change made since is never overwritten. A stale version is refused without saving. A change applies from the next time the page is loaded: someone reading it right now keeps the page they have until they reload. If the sender is on a company team, the team's rules apply to this change exactly as on the website (for example a required one-time code or company domains), and a change that breaks one is refused with the rule named. Narrowing who can open a link, or removing a list, changes what recipients can see.
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": {
"share_id": "<share_id>"
},
"name": "update_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Settings to remove: the label, the password, the end date, the domain list, the address list. Removing a list lets anyone who passes the email gate in. A setting that is not named here or above is left exactly as it is. | |
| comments | No | Whether readers can comment. Omitted keeps the current choice. Turning comments on needs the email gate and a one-time code; who sees comments follows the link. | |
| password | No | A password of at least 8 characters on top of the email gate. `clear` removes it. | |
| share_id | Yes | The link's share id, slug (the part after /r/), or full address. | |
| lock_deck | No | The copy lock: true blocks save and print; false allows them. | |
| expires_at | No | When the link stops working, as a date and time such as 2026-12-31T17:00:00Z. Mutually exclusive with `expires_in_hours`. `clear` removes the end date. | |
| show_sender | No | Who the gate names to the reader: nobody, the sender's company, or the sender's name. The company needs a work sign-up address; the name needs one set in Settings. | |
| verify_email | No | Whether the one-time-code check is on: the reader receives a six-digit code and opens the document only when they type it back. Needs the email gate on. | |
| require_email | No | Whether the email gate is on. Turning it off removes the check that the list of allowed domains and addresses relies on; those lists must be cleared in the same call. | |
| allowed_emails | No | Only these exact addresses may open the link. A separate list from the domains; a visitor passes on either. This REPLACES the whole stored list, so entries absent from this value are removed. `clear` removes the list. Needs the email gate on. | |
| show_watermark | No | Show a faint watermark when lock_deck is true. Defaults to true on creation; omitted on edit keeps the saved choice. | |
| recipient_label | No | A new label for who this link is for, e.g. "Acme". | |
| expires_in_hours | No | The link stops working this many hours from now. Mutually exclusive with `expires_at`. | |
| notify_first_open | No | Whether the sender is e-mailed when someone reads this link. | |
| add_allowed_emails | No | Addresses to ADD to the stored list of allowed addresses. The server merges them over the list as it is now, so nothing has to be copied back. Needs the email gate on. | |
| allowed_email_domains | No | Only these email domains may open the link, e.g. ["acme.com"]. This REPLACES the whole stored list, so entries absent from this value are removed. `clear` removes the list. Needs the email gate on. | |
| remove_allowed_emails | No | Addresses to REMOVE from the stored list of allowed addresses. The answer says which were not on the list. Removing the last entry of every list is refused; `clear` removes a whole list. | |
| add_allowed_email_domains | No | Domains to ADD to the stored list of allowed domains, merged on the server. | |
| expected_settings_version | No | The settings version get_share showed. The change is made only if the link is still at that version; if the settings changed since they were read, nothing is changed and the call returns the current settings version. Required when a whole allowed-address or allowed-domain list is replaced or cleared. | |
| remove_allowed_email_domains | No | Domains to REMOVE from the stored list of allowed domains, merged on the server. |