app.tempomusic.staff.revokeStaffRole

lexicons.tempomusic.fan

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

Lexicon Garden

@