social.colibri.beta.community.setMemberRoles
Sets the complete set of roles a member holds.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | community.beta.colibri.social |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Sets the complete set of roles a member holds.",
"errors": [
{
"description": "The request is missing, malformed, or unverifiable service auth.",
"name": "AuthRequired"
},
{
"description": "The requesting user lacks the role.manage permission.",
"name": "Forbidden"
},
{
"description": "No community exists with that DID.",
"name": "CommunityNotFound"
},
{
"description": "The subject does not hold a member record in this community.",
"name": "MemberNotFound"
},
{
"description": "One of the requested roles does not exist.",
"name": "RoleNotFound"
},
{
"description": "The requesting user cannot grant or revoke a role at or above their own highest position.",
"name": "RoleHierarchy"
},
{
"description": "The AppView's stored credentials for this community are missing or unusable.",
"name": "CredentialsUnavailable"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"community": {
"description": "The community the member belongs to.",
"format": "did",
"type": "string"
},
"roles": {
"description": "The complete new set of roles the member should hold.",
"items": {
"description": "A role.",
"format": "record-key",
"type": "string"
},
"type": "array"
},
"subject": {
"description": "The member whose roles are being set.",
"format": "did",
"type": "string"
}
},
"required": [
"community",
"subject",
"roles"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"member": {
"description": "The updated member.",
"ref": "social.colibri.beta.community.defs#memberView",
"type": "ref"
}
},
"required": [
"member"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "social.colibri.beta.community.setMemberRoles",
"lexicon": 1
}