Create a tenant
Adds a tenant to an environment. A tenant has its own lunas, data, keys and secrets, apart from every other tenant. It runs nothing until you deploy to it. The response holds its two main credentials.
/_luna/tenantsAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
tenants:writeapplication/jsonparentstringrequiredThe environment to add it to, by the full name of its default tenant.
namestringrequiredThe new tenant's name within the environment: lower-case letters, digits and single dashes.
labelsobjectYour own tags, for finding and grouping tenants.
The new tenant.
tenantstringrequiredThe tenant's full name.
publishableKeystringrequiredIts main publishable key, which is safe to ship in a client.
apiTokenstringrequiredIts main secret token. Keep it on your servers.
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.