org.atgrp.requestJoin

Request to join a group, optionally redeeming an invite. Admits the caller right away when the join policy is open or with a valid invite, and otherwise queues a request. Returns the caller's existing request or membership if they have one. Requires service auth.

Repository @lex.atgrp.org did:plc:4pt2cnpyvfgn5b7uxwn2shwv namespace authority
Details · procedure
Kindprocedure
Authorityatgrp.org
Commit rev3n36c4rprbt2f
Indexed
cid bafyreicvwqxbcwgydnjkvav7ye6dkpp6pactgkz6rc2qs733kupmgi2gpa

Checks

Valid
  • unlimited-string defs.main.output.schema.properties.statusNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Request to join a group, optionally redeeming an invite. Admits the caller right away when the join policy is open or with a valid invite, and otherwise queues a request. Returns the caller's existing request or membership if they have one. Requires service auth.",
      "errors": [
        {
          "name": "GroupNotFound"
        },
        {
          "name": "InvalidInvite"
        },
        {
          "description": "The group is invite-only.",
          "name": "JoinClosed"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "group": {
              "format": "did",
              "type": "string"
            },
            "invite": {
              "description": "An invite in the caller's inbox space.",
              "format": "at-uri",
              "type": "string"
            },
            "message": {
              "description": "Shown to the group with the request.",
              "maxGraphemes": 2000,
              "maxLength": 20000,
              "type": "string"
            }
          },
          "required": [
            "group"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "membership": {
              "description": "Present when admitted.",
              "ref": "com.atproto.repo.strongRef#main",
              "type": "ref"
            },
            "request": {
              "description": "Present when pending.",
              "ref": "org.atgrp.defs#joinRequest",
              "type": "ref"
            },
            "status": {
              "knownValues": [
                "pending",
                "admitted"
              ],
              "type": "string"
            }
          },
          "required": [
            "status"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "org.atgrp.requestJoin",
  "lexicon": 1
}