Update a user

POSThttp://localhost:4000/api/users/update

Changes the details of a team member.

Your API key needs the users.MANAGE_ORG_USERS permission.

Body Params

idintegerrequired

ID of the user.

firstNamestring

First name.

lastNamestring

Last name.

occupationRolestring

Job title.

countrystring

Country name.

genderstring

Gender.

timezonestring

Time zone.

languagestring

Language code.

phoneCountryCodestring

Two-letter country code of the phone number.

phoneDialCodeinteger

Dial code without the plus sign.

phoneinteger

National phone number, digits only.

hierarchyIdintegerrequired

ID of the team the user belongs to.

permissionsRoleIdintegerrequired

ID of the role of the user.

hasHierarchyDataAccessboolean

True when the user sees all the data of their team.

brandsIdsarray of integerrequired

IDs of the brands the user can access.

Responses

200Successful response.
400The request is not valid.
401The API key is missing, invalid, expired or disabled.
403The API key does not have the permission this endpoint needs.