app.tempomusic.staff.revokeStaffRole

lexicons.tempomusic.fan

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "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.",
      "errors": [
        {
          "description": "The caller is not a super-admin.",
          "name": "Forbidden"
        },
        {
          "description": "A super-admin cannot revoke their own row. Have another super-admin do it.",
          "name": "CannotRevokeSelf"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "reason": {
              "maxLength": 1000,
              "type": "string"
            }
          },
          "required": [
            "did"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "auditEntryId": {
              "description": "Present only when revoked=true.",
              "minimum": 1,
              "type": "integer"
            },
            "revoked": {
              "description": "True when a previously active row was revoked. False when the DID was not an active moderator (idempotent no-op).",
              "type": "boolean"
            }
          },
          "required": [
            "revoked"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.tempomusic.staff.revokeStaffRole",
  "lexicon": 1
}

Validate Record

Validate a record against app.tempomusic.staff.revokeStaffRole

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:pxsuqmultto34oks44m2lgxm
CID
bafyreiacvcpbc72z4hslxkbrsrdkkztcguq4kcdqbmkbcuual5bekbamte
Indexed At
2026-08-24 09:06 UTC
AT-URI
at://did:plc:pxsuqmultto34oks44m2lgxm/com.atproto.lexicon.schema/app.tempomusic.staff.revokeStaffRole

Similar Lexicons

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. Idempo…

  • 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). Ca…

  • Revoke a role from a user

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

Lexicon Garden

@