Fork a luna
Makes a new luna that starts from another luna’s data, as it is now or as it was at an earlier moment. The new luna has its own key, in the same tenant or in another one. Reading the source needs data:read on its tenant, and writing the copy needs data:write on the tenant it goes to.
/_luna/tenants/{tenant}/forkAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
data:readdata:writetenantstringrequiredThe tenant the source luna is in, by its full name.
application/jsontypestringrequiredThe luna type.
keyobjectrequiredThe key of the luna to fork, such as {"id": "a"}.
toKeyobjectrequiredThe key of the new luna.
atinteger<int64> | nullThe moment to fork the luna as of, in milliseconds since the Unix epoch. Now when left out.
toTenantstring | nullThe tenant the new luna goes to, by its full name. The same tenant when left out.
schedulesbooleanWhether the new luna keeps the schedules its source has.
The luna is forked.
sandboxesinteger<int64> | nullHow many saved sandboxes came with the luna. Left out for a luna type with no sandboxes.
sandboxErrorstring | nullWhy the luna's sandboxes could not be copied. The luna itself is forked all the same.
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.