social.colibri.beta.role.create

Creates a role in a community.

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

Showing version bafyreia62at463nwm2to45fsfaxz2wv7fk3syy3ukv2zrnhanzppcg42he. Show the latest

Procedure

procedure · POST

Input

application/json

An icon badge. Image badges are set with social.colibri.beta.role.putBadgeImage.

color

string

Hex colour as #rrggbb.

  • maxLength: 7

community

requiredstring · did

The community to create the role in.

hoisted

boolean

Whether holders are listed separately in the member list.

Whether @role mentions resolve to this role.

name

requiredstring

Display name.

  • minLength: 1
  • maxLength: 32

permissions

requiredarray

Permissions granted by this role.

itemsstring

A namespaced permission identifier.

position

integer

Hierarchy position. Higher outranks lower.

Output

application/json

role

requiredref

The newly created 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.

InvalidRequest

The arguments are inconsistent or malformed beyond schema validation.

RoleHierarchy

The requested position is at or above the caller's highest role position, or the permissions include one 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.