younifyd
Menu

Update User

Update a user

PUT/api/users/{id}

Use it in a workflow

  1. Add a step and choose the Gorgias connector.
  2. Pick the Update User action (under Users).
  3. Fill in the fields below, then reference the result from later steps as {{updateUser.response.data}}.

Request

Path parameters

idintegerrequired

The ID of the user to update. Use the ID `0` to update your user (current user).

Request body

Enter the body as JSON in the step's Body field.

biostring | null

Short biography of the user.

countrystring | null

Country of the user

emailstring (email)

Email address of the user. `password_confirmation` field must be provided to change the email.

external_idstring

ID of the user in a foreign system (Stripe, Aircall, etc...). This field is not used by Gorgias, feel free to set it as you wish.

languagestring | null

Language of the user.

One offren

metaobject

Data associated with the user. You can use this field to store structured information (key-value data) about the user.

ssostring | null

Name of the Single Sign-On provider the user can use to log in

One ofgoogleoffice365

profile_picture_urlstring | null

URL of the profile picture of the user

namestring

Full name of the user.

new_passwordstring

New password of the user. `old_password` field must be provided when changing the password.

old_passwordstring

Current password of the user.

password_confirmationstring

Current password of the user.

roleobject

The role of the user.

namestringrequired

Name of the role

One ofadminagentbasic-agentlite-agentobserver-agent

timezonestring

Timezone of the user.

One ofAfrica/AbidjanAfrica/AccraAfrica/Addis_AbabaAfrica/AlgiersAfrica/AsmaraAfrica/AsmeraAfrica/BamakoAfrica/BanguiAfrica/BanjulAfrica/BissauAfrica/BlantyreAfrica/BrazzavilleAfrica/BujumburaAfrica/CairoAfrica/CasablancaAfrica/CeutaAfrica/ConakryAfrica/DakarAfrica/Dar_es_SalaamAfrica/DjiboutiAfrica/DoualaAfrica/El_AaiunAfrica/FreetownAfrica/GaboroneAfrica/HarareAfrica/JohannesburgAfrica/JubaAfrica/KampalaAfrica/KhartoumAfrica/KigaliAfrica/KinshasaAfrica/LagosAfrica/LibrevilleAfrica/LomeAfrica/LuandaAfrica/LubumbashiAfrica/LusakaAfrica/MalaboAfrica/MaputoAfrica/Maseru

two_fa_codestring | null
json
{
  "bio": "Full stack developer at Gorgias",
  "country": "FR",
  "email": "steve@company.com",
  "external_id": "user-84203241",
  "language": "fr",
  "meta": {
    "avatar_url": "https://avatars.example.com/steve-profile.jpeg",
    "position": "engineer"
  },
  "name": "Steve Frazelli",
  "new_password": "NewPassword6502!",
  "old_password": "OldPassword5031!",
  "password_confirmation": "OldPassword5031!",
  "role": {
    "name": "admin"
  },
  "timezone": "US/Pacific"
}

Response

Returns 202 with an object. Read it in later steps with {{updateUser.response.data.<field>}}.

idinteger

ID of the user.

activeboolean

Whether the user can log in.

biostring

Short biography of the user.

created_datetimestring (date-time)

When the user was created.

countrystring (ISO 3166-1 alpha-2)

Country of the user

deactivated_datetimestring (date-time)

When the user was deactivated.

emailstring (email)

Email address of the user. `password_confirmation` field must be provided to change the email.

external_idstring

ID of the user in a foreign system (Stripe, Aircall, etc...). This field is not used by Gorgias, feel free to set it as you wish.

firstnamestring

First name of the user.

lastnamestring

Last name of the user.

languagestring

Language of the user.

metaobject

Data associated with the user. You can use this field to store structured information (key-value data) about the user.

ssostring | null

Name of the Single Sign-On provider the user can use to log in

One ofgoogleoffice365

profile_picture_urlstring | null

URL of the profile picture of the user

namestring

Full name of the user.

roleobject

The role of the user.

namestring

Name of the role

One ofadminagentbasic-agentbotinternal-agentlite-agentobserver-agent

timezonestring

Timezone of the user.

updated_datetimestring (date-time)

When the user was last updated.

client_idstring

Service account associated application ID.

json
{
  "id": 3924,
  "active": true,
  "bio": "Full stack developer at Gorgias",
  "created_datetime": "2019-04-13T03:27:56.973873",
  "country": "FR",
  "deactivated_datetime": "2025-01-01T00:00:00Z",
  "email": "steve@company.com",
  "external_id": "user-84203241",
  "firstname": "Steve",
  "lastname": "Frazeli",
  "language": "fr",
  "meta": {
    "avatar_url": "https://avatars.example.com/steve-profile.jpeg",
    "position": "engineer"
  }
}

Need more? See the Gorgias guide for connection setup and behaviour shared by every action.

Was this page helpful?