Update User
gorgias_update_userUpdate an existing user's details by ID, including name, email, role, and more. Use id=0 to update the currently authenticated user.
Instructions
PUT /api/users/{id} — Update an existing user by ID. Only include fields to modify. Use id=0 to update the currently authenticated user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique ID of the user to update. Use 0 to update the currently authenticated user. | |
| bio | No | Short biography of the user. Pass null to clear. | |
| meta | No | Arbitrary key-value data. Replaces existing meta entirely when provided. Pass null to clear. | |
| name | No | Full name of the user | |
| role | No | The role to assign to the user | |
| No | Email address of the user. Requires password_confirmation when changing. | ||
| active | No | Whether the user can log in. | |
| country | No | Country of the user as ISO 3166-1 alpha-2 code. Pass null to clear. | |
| language | No | UI locale for the user. 'fr' or 'en' only. Pass null to clear. | |
| lastname | No | Last name of the user. | |
| timezone | No | Preferred timezone as IANA timezone name (e.g. 'US/Pacific', 'Europe/Paris'). Pass null to clear. | |
| firstname | No | First name of the user. | |
| external_id | No | ID of the user in a foreign system. Not used by Gorgias. Pass null to clear. | |
| two_fa_code | No | Two-factor authentication code, if applicable | |
| new_password | No | New password for the user. Requires old_password to also be provided. | |
| old_password | No | Current password of the user. Required when changing the password. | |
| password_confirmation | No | Current password of the user. Required when changing the email address. |