app.tempomusic.staff.revokeStaffRole

lexicons.tempomusic.fan

Documentation

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.

main procedure

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.

Input

Encodingapplication/json
did stringdid Required

A decentralized identifier (DID).

reason string Optional

No description available.

maxLength: 1000 bytes

Output

Encodingapplication/json
auditEntryId integer Optional

Present only when revoked=true.

revoked boolean Required

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.
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "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"
}

Lexicon Garden

@