# fyi.opensocial.createInvite

Write an invite into someone's own invites space. Requires invite.

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

- Published at: at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.createInvite

## The schema as published

```json
{
  "defs": {
    "main": {
      "description": "Write an invite into someone's own invites space. Requires invite.",
      "errors": [
        {
          "name": "NoInvitesSpace"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "expiresAt": {
              "format": "datetime",
              "type": "string"
            },
            "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"
            },
            "invitee": {
              "format": "did",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "group",
            "invitee"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.createInvite",
  "lexicon": 1
}
```
