files

Write a workspace file's text

Write a workspace file's text.

put/files/content

Request

  • Base URL
    https://www.dench.com/api/v1
  • Auth
    • HTTP bearer
    • or HTTP bearer

Request body

pathstring required

Workspace file path, e.g. /reports/q2.md. A leading /workspace/ mount prefix is stripped.

contentstring required

Full replacement text (UTF-8, <= 400 KB).

expectedPreviousHashstring

contentHash from the last read; the write is rejected with version_mismatch if the file changed since.

Response

Successful response

pathstring required

Normalized workspace path that was written.

contentHashstring required

Changes

No recorded changes to this operation across all 1 revision of this API.