Atmosphere GroupsOpen specificationBeta
MenuClose

fyi.opensocial.leaveGroup

Leave the group.

Kind
A method (procedure)
Record
at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.leaveGroup
In the spec
org.atgrp.leaveGroup, the spec's lexicon of the same name. It may differ from this one.

Projects that use this

All projects

main procedure

Input

Encoding: application/json

FieldTypeDescription
group (required)string (did)The group DID. Every method is served by the group's host and authorized against that group's roles.

Output

Encoding: application/json

No fields.

Errors

  • NotAMember: The account is not a member of the group.
  • LastConfigurer: It would leave the group with nobody able to configure it.
The schema as published
{
  "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
}

All lexicons