Workspace

Writes a file sent base64 encoded

Replaces a file of the same path, and makes the folders it goes into. For a large file, PUT …/{path}/content sends it as it is.

put/lambdas/{privateKey}/files/{path}

Request

  • Base URL: https://genhttp.dev/api/v1
  • URL: https://genhttp.dev/api/v1/lambdas/{privateKey}/files/{path}
  • Auth: none declared

Path parameters

privateKeystring required

The editor key of the lambda. Holding it is what allows the call.

pathstring required

The path within the workspace, sent as one segment with its slashes encoded: logs%2Ftoday.txt

Request body

Contentstring nullable

Its bytes, base64 encoded; empty for an empty file

Response

The file as it was written

Pathstring

Its path within the workspace, with forward slashes: logs/today.txt

Sizeinteger

How many bytes it holds

Modifiedstring date-time

When it was last written

Changes

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