com.getorbyt.community.saveRole
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Creates a Community role, or changes one. Without a key it creates a role; with one it replaces that role's name and permissions. The key moderator changes what the built-in moderator role may do, and keeps its name. Only an administrator may define roles. Recorded in the moderation log.",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "CommunityNotFound"
},
{
"name": "InsufficientRole"
},
{
"name": "InvalidRequest"
},
{
"description": "No role with this key exists in the Community.",
"name": "RoleNotFound"
},
{
"description": "The Community already defines the most roles it may.",
"name": "TooManyRoles"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"community": {
"format": "at-uri",
"type": "string"
},
"key": {
"description": "The role to change. Absent creates a role.",
"maxLength": 64,
"type": "string"
},
"name": {
"description": "Required for a role the Community defined. Ignored for moderator.",
"maxGraphemes": 32,
"maxLength": 320,
"type": "string"
},
"permissions": {
"items": {
"knownValues": [
"manage-posts",
"manage-reports",
"manage-members",
"manage-roles",
"manage-settings",
"manage-mail",
"view-log"
],
"type": "string"
},
"maxLength": 16,
"type": "array"
}
},
"required": [
"community",
"permissions"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"role": {
"ref": "com.getorbyt.community.defs#roleView",
"type": "ref"
}
},
"required": [
"role"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "com.getorbyt.community.saveRole",
"lexicon": 1
}
Metadata
- DID
-
did:plc:2xrqztnmzlckb3xfuuukupso - CID
-
bafyreifjptdi6afacrs6ze2cpnfefmj4jkqxkeersf43iyj2l2uik2mja4 - Indexed At
- 2026-10-06 00:06 UTC
- AT-URI
-
at://did:plc:2xrqztnmzlckb3xfuuukupso/com.atproto.lexicon.schema/com.getorbyt.community.saveRole
Referenced Schemas (1)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
com.getorbyt.community.deleteRole procedure
Deletes a role the Community defined, or, for the key moderator, puts the built-in moderator role back to its default permissions. A role someone holds cannot be deleted; move them to another role first. Only an adminis…
-
social.colibri.beta.role.create procedure
Creates a role in a community.
-
Sets the complete set of roles a member holds.
-
social.colibri.beta.role.update procedure
Updates a role's settings.
-
com.getorbyt.community.manageMember procedure
Mute, ban, or re-role a member. Only an administrator may set a role; a moderator may mute and ban, but never a peer or an administrator. Administration is service state and may be granted to an account that does not ho…