app.tempomusic.staff.grantStaffRole
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "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.",
"errors": [
{
"description": "The caller is not a super-admin.",
"name": "Forbidden"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"did": {
"format": "did",
"type": "string"
},
"reason": {
"maxLength": 1000,
"type": "string"
},
"role": {
"ref": "app.tempomusic.staff.defs#staffRole",
"type": "ref"
}
},
"required": [
"did",
"role"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"auditEntryId": {
"description": "Present only when granted=true.",
"minimum": 1,
"type": "integer"
},
"granted": {
"description": "True when a new row was inserted or a revoked row was reactivated. False when the DID already held the requested active role (idempotent no-op).",
"type": "boolean"
}
},
"required": [
"granted"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "app.tempomusic.staff.grantStaffRole",
"lexicon": 1
}
Metadata
- DID
-
did:plc:pxsuqmultto34oks44m2lgxm - CID
-
bafyreid77x4zjsgykwkvrkr3ouxqbx42prsati2dsnjul4lvc2y4dxosra - Indexed At
- 2026-08-24 09:06 UTC
- AT-URI
-
at://did:plc:pxsuqmultto34oks44m2lgxm/com.atproto.lexicon.schema/app.tempomusic.staff.grantStaffRole
Referenced Schemas (1)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
app.tempomusic.staff.revokeStaffRole 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.…
-
app.didpic.admin.grantRole procedure
Grant a role.
-
pub.chive.admin.assignRole procedure
Assign a role to a user
-
app.didpic.admin.revokeRole procedure
Revoke a role.