social.colibri.beta.role.delete
Deletes a role.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | role.beta.colibri.social |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Deletes a role.",
"errors": [
{
"description": "The request is missing, malformed, or unverifiable service auth.",
"name": "AuthRequired"
},
{
"description": "The caller lacks the role.manage permission.",
"name": "Forbidden"
},
{
"description": "No community exists at the given DID.",
"name": "CommunityNotFound"
},
{
"description": "No role exists at the given record key.",
"name": "RoleNotFound"
},
{
"description": "The role is marked protected and cannot be deleted.",
"name": "RoleProtected"
},
{
"description": "Every member holds the role from the moment they join, so it cannot be deleted.",
"name": "RoleDefault"
},
{
"description": "The role is at or above the caller's highest role position.",
"name": "RoleHierarchy"
},
{
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
"name": "CredentialsUnavailable"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"community": {
"description": "The community the role belongs to.",
"format": "did",
"type": "string"
},
"role": {
"description": "The role's record key.",
"format": "record-key",
"type": "string"
}
},
"required": [
"community",
"role"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {},
"type": "object"
}
},
"type": "procedure"
}
},
"id": "social.colibri.beta.role.delete",
"lexicon": 1
}