social.colibri.beta.community.setMemberRoles

Sets the complete set of roles a member holds.

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

Procedure

procedure · POST

Input

application/json

community

requiredstring · did

The community the member belongs to.

roles

requiredarray

The complete new set of roles the member should hold.

itemsstring · record-key

A role.

subject

requiredstring · did

The member whose roles are being set.

Output

application/json

member

requiredref

The updated member.

Errors

AuthRequired

The request is missing, malformed, or unverifiable service auth.

Forbidden

The requesting user lacks the role.manage permission.

CommunityNotFound

No community exists with that DID.

MemberNotFound

The subject does not hold a member record in this community.

RoleNotFound

One of the requested roles does not exist.

RoleHierarchy

The requesting user cannot grant or revoke a role at or above their own highest position.

CredentialsUnavailable

The AppView's stored credentials for this community 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.