social.colibri.beta.community.approveApplication

Approves a pending application, admitting the subject as a member.

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

Checks

Valid Lint pass
JSONDownload
{
  "$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
}