Search

saveUser

Create or update a user. See the getUserRights with userID field for user data and rights retrieving.

This API call may return error 1061 or 1062 (if you do not have the right to add/edit users) or 1066 (if you do not have the right to manage users in that specific user group).

Input parameters

Parameter nameDescriptionPossible valueRequired
userIDInteger
langRetrieve item names in a specific language. If omitted, API will return item names in the default language of your ERPLY account.
Possible values:
  • 'eng' - English
  • 'spa' - Spanish
  • 'ger' - German
  • 'swe' - Swedish
  • 'fin' - Finnish
  • 'rus' - Russian
  • 'est' - Estonian
  • 'lat' - Latvian
  • 'lit' - Lithuanian
  • 'gre' - Greek
String
userGroupIDUser group.
Required field when creating a new user.
Integer
nameEmployee's username.
Required field when creating a new user.
Each user must have a unique name. API returns error 1012 if you try to create a user with a name that already exists.
String
passwordEmployee's password. Password must be at least 8 characters, otherwise API returns error 1016.String
cardCodeUser PIN. PIN must be at least 6 characters, otherwise API returns error 1016.String
employeeIDID of the employee.Integer
sendNotificationEmail0 or 1, by default 0Integer

Response

Field nameTypeDescription
userIDIntegerID of the newly-created or updated item