Deploy an app
Deploys a built app to a tenant as its next version. The request names the entry modules, their manifests and the files. The luna deploy command builds an app and sends this request for you. Running lunas move to the new version as they next wake.
/_luna/deployAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
deploy:writeapplication/jsontenantstringrequiredThe tenant to deploy to, by its full name.
entriesstring[]requiredThe entry modules, relative to the app's root. At most one for each language. One path as a string works too, and so does the name entry.
manifestsobjectThe manifest of each entry module, by its path, as the SDK's build reports it.
filesobjectThe files of a small app: each path, relative and separated by /, with its contents as UTF-8 text.
treeobjectThe files of an app that were uploaded before this request, each path with its hash and size.
The app is deployed.
tenantstringrequiredThe tenant's full name.
versioninteger<int64>requiredThe version the tenant now runs.
lunasLunaInfo[]requiredThe luna types the version defines.
Show propertiesHide properties
LunaInfonamestringrequiredvisibilitystringrequiredpublic when clients with a publishable key can call it, private otherwise.
keystring[]requiredThe names of the fields of its key.
handlersstring[]requiredThe names of its handlers.
publishableKeystringrequiredThe tenant's main publishable key, which is safe to ship in a client.
apiTokenstringrequiredThe tenant's main secret token. Keep it on your servers.
warningsstring[]What you should know though the deploy went through. Left out when there is nothing to say.
urlstring | nullThe address the app is served at. Left out when the deployment has no app domain.
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.