Data
Switches a kind of data on
Nothing happens if it is on already. The lambda can use it from its next request on, without being deployed again.
The database is made empty, and the lambda is started again on its next request, so what it does as it starts - applying its migrations - runs against it. The secrets start empty: their values are entered with PUT …/secrets/{name}.
put/lambdas/{privateKey}/data/{kind}
Request
- Base URL: https://genhttp.dev/api/v1
- URL: https://genhttp.dev/api/v1/lambdas/{privateKey}/data/{kind}
- Auth: none declared
Path parameters
privateKeystring required
The editor key of the lambda. Holding it is what allows the call.
kindstring required
Which kind: database, workspace or secrets
Response
The kind of data, switched on
Changes
No recorded changes to this operation across all 1 revision of this API.