~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
37 lines · 960 B Raw History
{
  "lexicon": 1,
  "id": "org.atgrp.leaveGroup",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Leave a group, deleting the caller's membership, which the group authored. The caller should also delete their confirmation. Requires service auth.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["group"],
          "properties": {
            "group": {
              "type": "string",
              "format": "did"
            }
          }
        }
      },
      "errors": [
        {
          "name": "GroupNotFound",
          "description": "The group isn't hosted here."
        },
        {
          "name": "NotAMember",
          "description": "The caller isn't a member of the group."
        },
        {
          "name": "LastConfigurer",
          "description": "The caller is the group's only admin."
        }
      ]
    }
  }
}