Update doc settings
update_doc_settingsChange a doc the user OWNS: password protection (password_on / password_value), ask viewers for their email before viewing (ask_name), allow file downloads (allow_downloads), view notifications for the owner (notify), and the doc's title (title). Only the fields you pass are changed. Renaming changes the display title only and keeps the link. To change the link itself, the part after the last slash, pass new_slug. That breaks the old link for everyone who has it, so the first call changes nothing and returns a warning with both links. Pass it on, and only after the person says yes, call again with the same new_slug and confirm_new_link true. Identify the doc via doc_name (fuzzy-matched) or slug.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | The doc's slug or share URL. | |
| title | No | A new title for the doc (max 500 chars). The link stays the same. | |
| notify | No | Notify the owner on views. | |
| account | No | Email address of the farm to act on. Omit for the signed-in farm. Only a connected account is accepted; call list_accounts to see which. | |
| ask_name | No | Ask each viewer for their email before showing the doc. Despite the field name it asks for an email, not a name. | |
| doc_name | No | Name of the doc (fuzzy-matched). Pass this or slug. | |
| new_slug | No | A new ending for the share link, the part after the last slash. The old link stops working. Without confirm_new_link nothing changes and you get the warning to pass on. | |
| password_on | No | Require a password to view. | |
| password_value | No | The password. Setting this also turns password_on on. | |
| allow_downloads | No | Let viewers download the original file. | |
| confirm_new_link | No | Set true only after the person has seen the warning about the old link and said yes. |