ai.newnal.illi.home.setRole

illi-service.newnal.id

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Appoint or demote a main admin (root admin).",
      "errors": [
        {
          "name": "NotRootAdmin"
        },
        {
          "name": "NotMember"
        },
        {
          "name": "MainAdminLimitReached"
        },
        {
          "name": "CannotChangeRoot"
        },
        {
          "name": "HomeNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "role": {
              "knownValues": [
                "mainAdmin",
                "member"
              ],
              "type": "string"
            }
          },
          "required": [
            "homeId",
            "did",
            "role"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "ok": {
              "type": "boolean"
            }
          },
          "required": [
            "ok"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.home.setRole",
  "lexicon": 1
}

Validate Record

Validate a record against ai.newnal.illi.home.setRole

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:uztm7bi2ce42dez3uu3qafro
CID
bafyreiev544f2dbwtfucwanvzpjuuxy4jg6g2siv6vmra6qsgwhc5ykpnq
Indexed At
2026-10-19 16:48 UTC
AT-URI
at://did:plc:uztm7bi2ce42dez3uu3qafro/com.atproto.lexicon.schema/ai.newnal.illi.home.setRole

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@