Change your account settings
update_account
Changes the display name, phone number, avatar or notification preferences of the account the token belongs to.
Only the fields you send change. It always writes the token holder, needs no workspace and cannot be pointed at anybody else. The email address is not changed here: that needs a confirmation link and can only be done in the product, as Change your email describes.
settings takes Sounds and Notifications, each with AiGenerationDone and SitePublished booleans, and anything that is not a boolean is ignored rather than refused. A name outside 2 to 99 characters and an avatar over 10 MB are ignored the same way.
Send the phone number in international form, starting with + or 00. A number that cannot be read that way, or an empty string, clears the stored one rather than being refused. See Your account.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
name |
string | No | The display name, 2 to 99 characters. |
phone |
string | No | The phone number in international form, starting with + or 00. |
avatar |
string | No | An avatar image, base64 encoded, up to 10 MB. |
settings |
object | No | Notification and sound preferences. Sounds decides whether a sound plays in the browser and Notifications whether a browser notification is shown, each with AiGenerationDone for when a generation finishes and SitePublished for when a site finishes publishing. |