Upload a workspace file
upload_fileWrite a file to the lambda's workspace, a runtime directory it can read, write and serve. Takes effect immediately without a deploy - the way to ship a front end that changes independently of the code, and the place for large files that are not code, such as a model or a dataset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative to the workspace; slashes make folders, e.g. 'site/app.css'. | |
| content | Yes | Text, or base64 with encoding set. | |
| encoding | No | 'base64' for binary; omit otherwise. | |
| privateKey | Yes | The editor key. |