put
https://api.duodeal.app/api/users/
Updates a user. The caller must have permission to edit the target user. Only the fields provided in the body are modified.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | User unique identifier |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
email | string | No | Email address (validated) |
password | string | No | New plain password — hashed before storage |
firstName | string | No | First name |
lastName | string | No | Last name |
userGroup | object | No | User group: {"id": <user_group_id>} |
active | boolean | No | Active status |
avatar | string | No | Avatar URL or media reference |
phone | string | No | Phone number |
jobTitle | string | No | Job title |
mailProvider | string | No | Mail provider: internal, gmail, outlook, or mailto |
language | string | No | Preferred locale (e.g. en, fr) |
Response
200 OK: User successfully updated400 Bad Request: Invalid JSON or validation error401 Unauthorized: Invalid or missing API key403 Forbidden: Not allowed to edit this user404 Not Found: User not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Resource updated
400Bad request
401Unauthorized
404Resource not found
