atproto blogging
1{
2 "lexicon": 1,
3 "id": "com.atproto.server.updateEmail",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Update an account's email.",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": [
13 "email"
14 ],
15 "properties": {
16 "email": {
17 "type": "string"
18 },
19 "emailAuthFactor": {
20 "type": "boolean"
21 },
22 "token": {
23 "type": "string",
24 "description": "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed."
25 }
26 }
27 }
28 },
29 "errors": [
30 {
31 "name": "ExpiredToken"
32 },
33 {
34 "name": "InvalidToken"
35 },
36 {
37 "name": "TokenRequired"
38 }
39 ]
40 }
41 }
42}