# fyi.opensocial.leaveGroup

Leave the group.

A method (procedure) the reference host at opensocial.fyi publishes. The page: https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-leaveGroup/

- Published at: at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.leaveGroup
- In the spec: https://www.atmospheregroups.org/spec/lexicons/org-atgrp-leaveGroup/, which differs

## The schema as published

```json
{
  "defs": {
    "main": {
      "description": "Leave the group.",
      "errors": [
        {
          "description": "The account is not a member of the group.",
          "name": "NotAMember"
        },
        {
          "description": "It would leave the group with nobody able to configure it.",
          "name": "LastConfigurer"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "group": {
              "description": "The group DID. Every method is served by the group's host and authorized against that group's roles.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "group"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.leaveGroup",
  "lexicon": 1
}
```
