Endpoint is used to import users from your system into Repsly.

Request definition

Required keys are marked with a red triangle 🔺

NameTypeDescription
Code🔺String (20)ID
Name🔺String (80)Name
Email🔺String (100)Email
ActiveBooleanIs user active
RoleString (80)Roles, pipe separated (AccountOwner|Admin|Representative)
NoteString (255)Note
PhoneString (128)Phone
TerritoriesArray(String)The array of strings of territory paths that user is associated with.
Territory path is representation of hierarchical territory position as territory names separated by “/”.

Ex. “Territory 1/Territory 1.1/Territory 1.1.1”
SendEmailEnabledBooleanUser is allowed to send emails from mobile app
Address1String (256)Address1
Address2String (256)Address2
CityString (256)City
StateString (256)State
ZipCodeString (20)ZIP
ZipCodeExtString (20)ZIP ext
CountryString (256)Country
CountryCodeString (20)Country code
AttributesArray(Attribute)List of attributes with values and types specified for that company.
PermissionsArray(String)List of admin permissions

Attribute array definition

NameTypeDescription
Title🔺StringName of the attribute (defined by the admin).
Value🔺StringThe value set for that user. If the value is null than the value is not set.

Response definition

NameTypeDescription
CodeIntegerError identifier (0 = no errors)
MessageString (255)Response affirmative or error message
ValueStringThe value set for that user. If the value is null than the value is not set.
Summary\CurrentUsersActiveIntegerNumber of active users before import.
Summary\NewUsersActiveIntegerNumber of active users after import.
Summary\RowsTotalIntegerNumber of affected records (users) during import.
Summary\RowsInsertIntegerNumber of new users inserted during import.
Summary\RowsUpdateIntegerNumber of updated existing users during import.
Summary\RowsInvalidIntegerNumber of records with invalid data submitted.
Summary\ValidationErrorsDictionary(String,Array(String))All import validation errors grouped by user identifier.

In case of a HTTP bad request (code 400), you will also receive a status response with Code equal to 1 and an error message.

Language