app.tempomusic.staff.grantStaffRole
Add a DID to the moderators allowlist with the given role. Requires the caller to have the `superAdmin` role. Writes a `moderatorGranted` audit row only when a new row is inserted or a revoked row is reactivated. Idempotent: granting a DID that already holds the same active role returns 200 with `granted: false` and no audit row.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | staff.tempomusic.app |
| Indexed |
Procedure
procedure · POSTInput
application/jsonOutput
application/jsonauditEntryId
integerPresent only when granted=true.
minimum: 1
True when a new row was inserted or a revoked row was reactivated. False when the DID already held the requested active role (idempotent no-op).
Errors
Forbidden
The caller is not a super-admin.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
app.tempomusic.staff.revokeStaffRole
procedureMark a moderator row as revoked. The DID can no longer pass the moderator gate (latency = the moderator-cache TTL, default 30s). Requires the caller to have the `superAdmin` role. A super-admin cannot revoke themselves. Writes a `moderatorRevoked` audit row only when an active row was actually revoked. Idempotent: revoking a DID that is not currently an active moderator returns 200 with `revoked: false` and no audit row.
-
app.didpic.admin.grantRole
procedureGrant a role.
-
pub.chive.admin.assignRole
procedureAssign a role to a user
-
app.didpic.admin.revokeRole
procedureRevoke a role.