app.tempomusic.staff.revokeStaffRole

Mark 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.

Details · procedure
Kindprocedure
Authoritystaff.tempomusic.app
Indexed

Procedure

procedure · POST

Input

application/json

did

requiredstring · did

reason

string
  • maxLength: 1000

Output

application/json

Present only when revoked=true.

  • minimum: 1

revoked

requiredboolean

True when a previously active row was revoked. False when the DID was not an active moderator (idempotent no-op).

Errors

Forbidden

The caller is not a super-admin.

CannotRevokeSelf

A super-admin cannot revoke their own row. Have another super-admin do it.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • 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.

  • Revoke a role.

  • Lift an account suspension: deletes the current state row (history stays in the audit log) and instantly readmits the account's content on the public surface. Also accepts a LAPSED suspension (removes the stale row). Cannot lift a ban. Requires the `moderator` role. Writes an `accountUnsuspended` audit row.

  • Revoke a role from a user

  • Revoke a user's governance role. Only accessible to administrators. Also revokes any active delegation.