social.colibri.beta.community.approveApplication
Approves a pending application, admitting the subject as a member.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | community.beta.colibri.social |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Approves a pending application, admitting the subject as a member.",
"errors": [
{
"description": "The request is missing, malformed, or unverifiable service auth.",
"name": "AuthRequired"
},
{
"description": "The caller lacks the approval.manage permission.",
"name": "Forbidden"
},
{
"description": "No community exists at the given DID.",
"name": "CommunityNotFound"
},
{
"description": "No pending application exists for the subject in this community.",
"name": "ApplicationNotFound"
},
{
"description": "The subject already holds a member record in this community.",
"name": "AlreadyMember"
},
{
"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 to admit the subject to.",
"format": "did",
"type": "string"
},
"subject": {
"description": "The applicant to admit.",
"format": "did",
"type": "string"
}
},
"required": [
"community",
"subject"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"member": {
"description": "The newly admitted member.",
"ref": "social.colibri.beta.community.defs#memberView",
"type": "ref"
}
},
"required": [
"member"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "social.colibri.beta.community.approveApplication",
"lexicon": 1
}