Rotate an app key
Makes a replacement for a key or token. The old one keeps working for the overlap, so that callers can move over. Use the id primary for the tenant’s main publishable key and primary-secret for its main secret token.
/_luna/tenants/{tenant}/keys/{id}/rotateAuthorizationBearer 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/jsonoverlapSecondsinteger<int64> | nullHow long the old key keeps working, in seconds. One hour when left out. 0 ends it at once.
nullThe replacement.
idstringrequiredThe new key's id. A main key keeps its id, and an added key's replacement gets a new one.
keystringrequiredThe new key. A secret token is shown only this once.
kindstringrequiredpublishable or secret.
oldKeyStopsMsinteger<int64>requiredWhen the old key stops working, in milliseconds since the Unix epoch.
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.