place.hud.inviteMember
Invite an account, by handle or DID (resolved, the handle verified), to a canvas as an editor or a viewer: the owner's alone. It shows as an invitation in their workspace until they open or decline it. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) or a HUD access token as Bearer.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3jbjefa5mju |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.roleNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Invite an account, by handle or DID (resolved, the handle verified), to a canvas as an editor or a viewer: the owner's alone. It shows as an invitation in their workspace until they open or decline it. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) or a HUD access token as Bearer.",
"errors": [
{
"description": "No canvas of this id that the person is in, or no tile of this id on it.",
"name": "NotFound"
},
{
"description": "The person's role does not allow it: a viewer changes no tile, and only the owner renames, deletes and shares.",
"name": "Forbidden"
},
{
"description": "The input is not what the method takes, or what it asks cannot be done.",
"name": "InvalidRequest"
},
{
"description": "A limit was reached: 50 canvases an owner, 20 members a canvas, 3 tiles a column.",
"name": "LimitReached"
},
{
"description": "No live web session or HUD access token: sign in.",
"name": "AuthRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"actor": {
"description": "The account invited: a handle or a DID.",
"format": "at-identifier",
"type": "string"
},
"canvas": {
"description": "A canvas's id: 12 hex digits, its space's key where it is kept in one.",
"maxLength": 12,
"minLength": 12,
"type": "string"
},
"role": {
"description": "editor (changes the tiles) or viewer (reads alone).",
"knownValues": [
"editor",
"viewer"
],
"type": "string"
}
},
"required": [
"canvas",
"actor",
"role"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"canvas": {
"ref": "place.hud.defs#canvasView",
"type": "ref"
}
},
"required": [
"canvas"
],
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Invite someone to a canvas.",
"id": "place.hud.inviteMember",
"lexicon": 1
}