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