social.colibri.beta.role.update

Updates a role's settings.

Repository @colibri.social did:plc:mprdjqjluoswa7awzggaggj3 namespace authority
Details · procedure
Kindprocedure
Authorityrole.beta.colibri.social
Indexed

Procedure

procedure · POST

Input

application/json

An icon badge. Image badges are set with social.colibri.beta.role.putBadgeImage. Takes precedence over removeBadge.

Per-channel overrides.

itemsref

A per-channel permission override.

color

string

Hex colour as #rrggbb.

  • maxLength: 7

community

requiredstring · did

The community the role belongs to.

An emoji badge. Cannot be combined with badge. Takes precedence over removeBadge.

hoisted

boolean

Whether holders are listed separately in the member list.

Whether @role mentions resolve to this role.

name

string

Display name.

  • minLength: 1
  • maxLength: 32

Permissions granted by this role.

itemsstring

A namespaced permission identifier.

position

integer

Hierarchy position. Higher outranks lower.

Removes the role's badge, whichever kind it is. Ignored when badge or emojiBadge is also given.

role

requiredstring · record-key

The role's record key.

Output

application/json

role

requiredref

The 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 match

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