com.getorbyt.community.saveRole

getorbyt.com

{
  "$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
}

Validate Record

Validate a record against com.getorbyt.community.saveRole

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

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.

Lexicon Garden

@