Update user

Updates a user. The caller must have permission to edit the target user. Only the fields provided in the body are modified.

Path Parameters

ParameterTypeRequiredDescription
idintegerYesUser unique identifier

Body Fields

FieldTypeRequiredDescription
emailstringNoEmail address (validated)
passwordstringNoNew plain password — hashed before storage
firstNamestringNoFirst name
lastNamestringNoLast name
userGroupobjectNoUser group: {"id": <user_group_id>}
activebooleanNoActive status
avatarstringNoAvatar URL or media reference
phonestringNoPhone number
jobTitlestringNoJob title
mailProviderstringNoMail provider: internal, gmail, outlook, or mailto
languagestringNoPreferred locale (e.g. en, fr)

Response

  • 200 OK: User successfully updated
  • 400 Bad Request: Invalid JSON or validation error
  • 401 Unauthorized: Invalid or missing API key
  • 403 Forbidden: Not allowed to edit this user
  • 404 Not Found: User not found
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params
userGroup
object
Responses
200

Resource updated

400

Bad request

401

Unauthorized

404

Resource not found

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!