saveUser

Create or update a user. See the getUserRights with userID field for user data and rights retrieving. Newly created user will have access to all warehouses, if some specific list is of warehouses is required for user it can be specified using warehouseIDs parameter (will replace existing list of access rights).

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
warehouseIDs List of warehouse IDs to give access for user String (A comma-separated list of integers.)
sendNotificationEmail 0 or 1, by default 0 Integer

Response

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