com.atproto.server.updateEmail
Update an account's email.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | server.atproto.com |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.emailNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.tokenNo maxLength, maxGraphemes or format limits this string.endpoint-output-undefineddefs.mainNo output is defined. Endpoints should define one, even an empty one.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Update an account's email.",
"errors": [
{
"name": "ExpiredToken"
},
{
"name": "InvalidToken"
},
{
"name": "TokenRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"email": {
"type": "string"
},
"emailAuthFactor": {
"type": "boolean"
},
"token": {
"description": "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed.",
"type": "string"
}
},
"required": [
"email"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "com.atproto.server.updateEmail",
"lexicon": 1
}