Deployment

Puts a version online

Compiles the version and, once it compiles, serves it from the next request on, in place of whatever was online. The code that runs once as the lambda starts - outside the handler it returns, migrating its database, say - runs now, and what it prints is in the lambda's log. The body is optional: without one, or without a version, the newest version goes online.

post/lambdas/{privateKey}/deployment/start

Request

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

Path parameters

privateKeystring required

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

Request body

Versioninteger nullable

The number of the version; left out, the newest

Response

The version is online. diagnostics may hold warnings of the compiler.

Successboolean

Whether it compiled and is online now. Where it is not, whatever was online before still is.

Changes

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