Update your account information
PATCH
https://api.datawrapper.de/v3/me Requires scope user:write.
Example Request
curl --request PATCH \
--url https://api.datawrapper.de/v3/me \
--header 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Carol Danvers",
"email": "ronin@avengers.com",
"language": "en_US",
"password": "13-binary-1968"
}'Headers
| Name | Value | Required | Description |
|---|---|---|---|
Content-Type | application/json | Yes | The format of the request body. |
Request Body
| Field | Type | Allowed values | Required | Description |
|---|---|---|---|---|
name | string | matches ^[^<>'"]*$ | No | Your new user name. |
email | string | No | Your new email address. | |
role | string | editoror admin | No | Your new role. This can only be changed if you are an admin. |
language | string | No | Your new language preference. | |
password | string | 8 characters or more | No | Strong user password. |
presenceColor | string | matches ^[a-zA-Z-\d]+$ | No | The preferred color to use for user precense pin. |
avatar | string | No | '' sets the avatar to the initial, while null sets avatar to custom_avatar. | |
emailNotifications | boolean | No | Enable or disable email notifications. | |
removePassword | boolean | true | No | Set to true to remove your password, leaving OAuth as the sole authentication method. |
oauthSignin | boolean | false | No | Setting this to false disconnects any oauth signin providers connected to your account. |
slackNotifications | string | stringor false | No | Set to false to disconnect the Slack account. Connecting a slack account can only be done in the web app from your user settings. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
id | number | No | |
email | string | No | |
name | string | No | |
language | string | No | |
presenceColor | string | No | |
avatar | string | No |