---
title: "Update user information"
method: PATCH
path: "/users/{id}"
---

# Update user information

`PATCH /users/{id}`

Requires scope `user:write`.

## Path parameters

- `id` number, required

## Request body

- object
  - `name` string — New user name
  - `email` string — New user email address
  - `role` 'editor' | 'admin' — New user role. Can only be changed by admins.
  - `language` string — New language preference.
  - `activateToken` string — Activate token, typically used to unset it when activating user.
  - `password` string — Strong user password.
  - `oldPassword` string — The previous user password.
  - `presenceColor` string — The preferred color to use for user presence pin.
  - `avatar` string — `''` sets the avatar to fallback, while `null` sets avatar to custom_avatar.
  - `emailNotifications` boolean — Enable or disable email notifications.
  - `oauthSignin` false — Setting this to false disconnects any oauth signin providers connected to user account.

## Response `200`

Successful

---

[API](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation.md) · [All operations](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datawrapper/datawrapper-api-v3-documentation/revisions/e190512863c7/schema)
