rsvp.atmo.space.invite.create
Create an invite for a space. Caller must be the space owner. Returns the raw token once; only the hash is stored.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | invite.space.atmo.rsvp |
| Indexed |
Showing version bafyreihbbbch32vxzjbq3gmcqtyg3rbkvd3ub245brkvpgq47eqmhavxm4. Show the latest
Checks
Validunlimited-stringdefs.main.input.schema.properties.permsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.tokenNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Create an invite for a space. Caller must be the space owner. Returns the raw token once; only the hash is stored.",
"errors": [
{
"name": "NotFound"
},
{
"name": "Forbidden"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"expiresAt": {
"description": "Unix ms timestamp. Omit for no expiry.",
"type": "integer"
},
"maxUses": {
"description": "Omit for unlimited uses.",
"minimum": 1,
"type": "integer"
},
"note": {
"maxLength": 500,
"type": "string"
},
"perms": {
"default": "write",
"knownValues": [
"read",
"write"
],
"type": "string"
},
"spaceUri": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"spaceUri"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"invite": {
"ref": "rsvp.atmo.space.defs#inviteView",
"type": "ref"
},
"token": {
"description": "Raw token. Shown once — cannot be retrieved later.",
"type": "string"
}
},
"required": [
"token",
"invite"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "rsvp.atmo.space.invite.create",
"lexicon": 1
}