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 name Description Possible value Required
userID    Integer    
lang  Retrieve 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    
userGroupID  User group.
Required field when creating a new user. 
Integer    
name  Employee'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    
password  Employee's password. Password must be at least 8 characters, otherwise API returns error 1016.  String    
cardCode  User PIN. PIN must be at least 6 characters, otherwise API returns error 1016.  String    
employeeID  ID of the employee.  Integer    
sendNotificationEmail  0 or 1, by default 0  Integer    

Response

Field name Type Description
userID  Integer  ID of the newly-created or updated item