fyi.opensocial.putRole

lexicons.opensocial.fyi

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Create or update a role and its action bindings. Requires group.configure.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actions": {
              "items": {
                "ref": "fyi.opensocial.permissions#action",
                "type": "ref"
              },
              "type": "array"
            },
            "assignable": {
              "items": {
                "maxLength": 64,
                "type": "string"
              },
              "type": "array"
            },
            "description": {
              "type": "string"
            },
            "group": {
              "description": "The group DID. Every method is served by the group's host and authorized against that group's roles.",
              "format": "did",
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "repoCollections": {
              "description": "See fyi.opensocial.permissions#binding. Omitted keeps the role's current value.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "role": {
              "maxLength": 64,
              "type": "string"
            }
          },
          "required": [
            "group",
            "role",
            "name",
            "actions"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.putRole",
  "lexicon": 1
}

Validate Record

Validate a record against fyi.opensocial.putRole

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

Metadata

DID
did:plc:2gqnilpksz2e7faj3bwvo6qc
CID
bafyreidfrhefred5wkqnth5jjs273dhj72whztv6xatljf7f4s5dvrzzfq
Indexed At
2026-09-25 03:15 UTC
AT-URI
at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.putRole

Version History (2 versions)

Referenced Schemas (1)

Similar Lexicons

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

  • The group's authorization config. Binds each role to a set of standardized actions and bounds role.assign and eject. Roles compose by union; there are no deny rules.

  • Set a member's full role set. Requires role.assign; every role added or removed must be in the caller's assignable set.

  • Create or update a rule. Requires group.configure. Fields are inlined rather than referencing fyi.opensocial.rule, because a record def cannot be used as an input object — same fix as updateProfile.

  • social.colibri.role.update procedurenot from the namespace authority

    Updates a role.

  • Updates a role's settings.

Lexicon Garden

@