ai.newnal.illi.home.setRole

illi-service.newnal.id

Documentation

Appoint or demote a main admin (root admin).

main procedure

Appoint or demote a main admin (root admin).

Input

Encodingapplication/json
did stringdid Required

A decentralized identifier (DID).

homeId stringtid Required

A timestamp-based identifier (TID).

role string Required

No description available.

Output

Encodingapplication/json
ok boolean Required

No description available.

Errors

NotRootAdmin
NotMember
MainAdminLimitReached
CannotChangeRoot
HomeNotFound
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "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"
}

Lexicon Garden

@