Actions11
File → Write
AI-generatedSummary
Write data to a specified file within a WDS project, optionally overwriting an existing file.
Inputs
- API Key — The API key for authenticating requests to the WDS Service API. If omitted, the node uses the API key from credentials.
- Domain — The domain URL of the WDS project. Defaults to the domain from credentials if not provided.
- Project ID (required) — The identifier of the project that contains the file to write.
- File Path (required) — The path within the project where the file is located or will be created.
- Overwrite — Boolean flag indicating whether to overwrite the file if it already exists (default: false).
- Body Parameters — Parameters specifying the content to write, which can include one or more fields as either n8n Binary File data or string form data, identified by field name and value.
Output shape
a single JSON object indicating success or failure for the write operation per input item
The output JSON includes the operation result with fields such as success status and error messages if any failure occurs. The node processes multiple input items sequentially, returning one output object per item.
Examples
Example 1: Write a text file with string content at a specified file path inside a project, allowing overwrite.
Set Project ID, File Path, Overwrite = true, and Body Parameters with parameter type 'Form Data (String)' specifying the name (e.g., 'file') and the text content as value.
Example 2: Upload a binary file to a specified path within a project without overwriting existing files.
Set Project ID, File Path, Overwrite = false, and Body Parameters with parameter type 'n8n Binary File' providing the name (e.g., 'file') and input data field name that contains binary data to upload.