Actions35
- File Actions
- Folder Actions
- Room Actions
- User Actions
File → Update File
AI-generatedSummary
Renames an existing ONLYOFFICE DocSpace file by sending a PUT to api/2.0/files/file/{fileId}, and returns the updated file object.
Inputs
- Authentication (required) — Credential type used for the request: API Key, Basic Auth, OAuth2, or Personal Access Token. Selects which DocSpace credential is used.
- File ID (required) — Numeric ID of the file to update.
- Title — New title to set for the file. If left empty, the title is omitted from the request body and an empty update is sent, so nothing is renamed.
Output shape
One item per input item, containing the updated file object as returned in the DocSpace API's response field (file metadata such as id, title, and extension).
With Continue On Fail enabled, a failed item returns {error: message} instead of stopping the workflow. Only the title can be changed by this operation. The file's extension is not added automatically, so include it in the title if you want to keep it.
Examples
Example 1: Rename a file after it is created or uploaded earlier in the workflow.
Authentication: API Key; File ID: expression from the previous node's id field; Title: 'Report-2026-Q3.docx'.
Example 2: Rename a file by ID.
Authentication: Personal Access Token; File ID: 12345; Title: 'Final contract.pdf'.