pub.chive.governance.revokeRole
Revoke a user's governance role. Only accessible to administrators. Also revokes any active delegation.
Repository
@lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh
not from the namespace authority
Details · procedure
| Kind | procedure |
|---|---|
| Authority | governance.chive.pub |
| Indexed |
Checks
Validunlimited-stringdefs.elevationResult.properties.messageNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.elevationResult.properties.requestIdNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"elevationResult": {
"description": "Result of role operation",
"properties": {
"message": {
"description": "Human-readable result message",
"type": "string"
},
"requestId": {
"description": "Request ID (if applicable)",
"type": "string"
},
"success": {
"description": "Whether the operation succeeded",
"type": "boolean"
}
},
"required": [
"success",
"message"
],
"type": "object"
},
"main": {
"description": "Revoke a user's governance role. Only accessible to administrators. Also revokes any active delegation.",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "Unauthorized"
},
{
"name": "InvalidRequest"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"did": {
"description": "DID of the user whose role to revoke",
"format": "did",
"type": "string"
},
"reason": {
"description": "Reason for revoking the role",
"maxLength": 1000,
"minLength": 10,
"type": "string"
}
},
"required": [
"did",
"reason"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"ref": "#elevationResult",
"type": "ref"
}
},
"type": "procedure"
}
},
"id": "pub.chive.governance.revokeRole",
"lexicon": 1,
"revision": 1
}