social.colibri.beta.role.update
Updates a role's settings.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | role.beta.colibri.social |
| Indexed |
Procedure
procedure · POSTInput
application/jsonbadge
refAn icon badge. Image badges are set with social.colibri.beta.role.putBadgeImage. Takes precedence over removeBadge.
channelOverrides
arrayPer-channel overrides.
A per-channel permission override.
color
stringHex colour as #rrggbb.
maxLength: 7
The community the role belongs to.
emojiBadge
refAn emoji badge. Cannot be combined with badge. Takes precedence over removeBadge.
hoisted
booleanWhether holders are listed separately in the member list.
mentionable
booleanWhether @role mentions resolve to this role.
name
stringDisplay name.
minLength: 1maxLength: 32
permissions
arrayPermissions granted by this role.
A namespaced permission identifier.
position
integerHierarchy position. Higher outranks lower.
removeBadge
booleanRemoves the role's badge, whichever kind it is. Ignored when badge or emojiBadge is also given.
The role's record key.
Output
application/jsonThe updated role.
Errors
AuthRequired
The request is missing, malformed, or unverifiable service auth.
Forbidden
The caller lacks the role.manage permission.
CommunityNotFound
No community exists at the given DID.
RoleNotFound
No role exists at the given record key.
RoleProtected
The role is marked protected and cannot be modified.
RoleHierarchy
The change would place the role at or above the caller's highest role position, or grants a permission the caller does not hold.
CredentialsUnavailable
The AppView cannot act as the community because its stored credentials are missing or unusable.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
Updates a role.
-
social.colibri.beta.role.create
procedureCreates a role in a community.
-
social.colibri.beta.role
recordA named bundle of permissions assignable to community members.
-
social.colibri.beta.role.putBadgeImage
procedureSets a role's badge to an uploaded image. The bytes are uploaded to the community's own repo, which is why this goes through the AppView: a space record must reference a blob living in the repo that holds the record. Replaces whatever badge was there before. Use social.colibri.beta.role.update with removeBadge to clear it.
-
Sets the complete set of roles a member holds.