Lid admin
Signature, parameters, an example call and the sample response for every method in this group, generated from the contract.
lid.admin.setSystemLida
turns 'Lida for this app' on or off for a system app (on and, optionally, capCents; Lid admin keys only, 403 admin_only): the piece that asks for the lid.lidaKey marker in lid-system.json receives it when published, with the owner's extra usage up to capCents a month. The response never includes the credential
Key permission: sitio (site)
lid.admin.setSystemLida(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
id | string | Required | path |
on | boolean | Optional | body |
capCents | number | Optional | body |
const result = await lid.admin.setSystemLida({
id: '…',
});Hand-written sample (not captured on devnet yet)
{
"on": true,
"capCents": 5000,
"key": {
"id": 413,
"expiresAt": "2027-02-08T12:00:00.000Z",
"spentThisMonthCents": 0,
"delivered": true
},
"pieces": [
"api"
],
"republished": true
}