Update an app key
Changes a key’s name or rules. Only the fields you send change. The main secret token has no rules to change.
/_luna/tenants/{tenant}/keys/{id}AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
keys:writetenantstringrequiredThe tenant, by its full name.
idstringrequiredThe key's id.
application/jsonkindstring | nullpublishable, which is the default, or secret. Only read when a key is made.
namestring | nullA name to tell the key by.
originsstring[] | nullThe origins a browser can use the key from, such as https://app.example.com. Empty means any origin.
ratePerSecondnumber<double> | nullThe most requests a second the key can make. More than 0.
typesstring[] | nullThe luna types the key can call. Empty sets no such limit.
expiresIninteger<int64> | nullHow long the key works, in seconds from now.
The key is changed.
okbooleanrequiredAlways true.
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.