rename_document
Rename a project document by UUID or exact file name. Creates the new file first, backs up both the original and any overwritten file, then deletes the old one—so no data is lost if interrupted.
Instructions
Rename a document, by uuid or by an unambiguous file name. The content is re-created under the new name before the original is deleted, with local backups first, so nothing is lost midway. A new name already in use is refused unless overwrite=true, which replaces its holder (backed up first). Relay any warning in the result to the user verbatim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | ||
| overwrite | No | ||
| project_id | Yes | ||
| new_file_name | Yes |