com.atproto.server.createInviteCodes
Create invite codes.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | server.atproto.com |
| Indexed |
Checks
Validunlimited-stringdefs.accountCodes.properties.accountNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.accountCodes.properties.codes.itemsNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"accountCodes": {
"properties": {
"account": {
"type": "string"
},
"codes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"account",
"codes"
],
"type": "object"
},
"main": {
"description": "Create invite codes.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"codeCount": {
"default": 1,
"type": "integer"
},
"forAccounts": {
"items": {
"format": "did",
"type": "string"
},
"type": "array"
},
"useCount": {
"type": "integer"
}
},
"required": [
"codeCount",
"useCount"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"codes": {
"items": {
"ref": "#accountCodes",
"type": "ref"
},
"type": "array"
}
},
"required": [
"codes"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "com.atproto.server.createInviteCodes",
"lexicon": 1
}