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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | atgrp.org |
| Commit rev | 3n36c4rprbt2f |
| Indexed |
Checks
Validunlimited-stringdefs.main.output.schema.properties.statusNo maxLength, maxGraphemes or format limits this string.
{
"$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
}