Creates a lambda
The new lambda is in the free tier and has one version: a copy of the template, or a snippet that says hello if none is given. Nothing is online until a version is deployed (POST /lambdas/{privateKey}/deployment/start, or a save with ?deploy=true). A copy of a demo that keeps records starts with an empty database of its own, switched on; the demo's records are not copied.
The answer holds the editor key (privateKey). It is handed out this once and cannot be recovered: whoever loses it loses the lambda, and whoever finds it may change it.
A publicKey that is asked for is trimmed and lower cased, and must be 3 to 40 characters of a-z, 0-9 and -, neither starting nor ending with a dash. It may not start with demo- or xn--, and a few names are reserved for the platform (www, api, admin, mail and the like). GET /keys/{publicKey} says whether a key can be claimed before trying. Left out, a random key of eight characters is chosen.
Request
- Base URL: https://genhttp.dev/api/v1
- URL: https://genhttp.dev/api/v1/lambdas
- Auth: none declared
Request body
Response
The lambda was created. Keep privateKey: it is not handed out again.
Changes
No recorded changes to this operation across all 1 revision of this API.