files
Write a workspace file's text
Write a workspace file’s text.
PUT
Write a workspace file's text
Authorizations
Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.
Body
application/json
Workspace file path, e.g. /reports/q2.md. A leading /workspace/ mount prefix is stripped.
Full replacement text (UTF-8, <= 400 KB).
contentHash from the last read; the write is rejected with version_mismatch if the file changed since.