app.didpic.admin.revokeRole

Revoke a role.

Details · procedure
Kindprocedure
Authorityadmin.didpic.app
Indexed

Procedure

procedure · POST

Input

application/json

did

requiredstring · did

role

requiredstring
  • enum: moderator | administrator

Output

application/json

Similar lexicons

semantic match

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

  • Revoke a role from a user

  • Grant a role.

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

  • Revoke admin access from a DID. Config-provided admins cannot be revoked here, and an admin cannot revoke their own access.

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