Set a secret
Sets a secret of a tenant to the text in the body. The tenant’s code reads it as an environment variable of the same name. Setting a secret deploys a new version with the same code, so that running lunas take it up.
/_luna/secrets/{tenant}/{name}AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
secrets:writetenantstringrequiredThe tenant, by its full name.
namestringrequiredThe secret's name: capital letters, digits and underscores, not starting with a digit.
text/plainThe secret's value, as UTF-8 text of at most 64 KiB.
stringThe secret is set.
versioninteger<int64> | nullThe version the tenant now runs, which has the change. Null when nothing is deployed to the tenant yet.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.