Users
In the Hapn platform, users can interact with devices through secure access to the web and mobile apps, as well as through notifications and alerts. A Hapn account supports multiple users, and each user may have access to different groups of devices. Access can be managed from the applications or through the API, which provides fine-grained control over which devices each user can access.
User Invitations
Creating users via the API or in any automated way is not possible. Instead, a user can be invited to an existing account via email. Only the recipient of the email can go through the user registration flow. Using the Hapn API, you can invite users to the account or cancel an existing invitation.
User Resources
User access can be restricted to a subset of devices. This limits what devices users can see on the map and what notifications they receive. The access level can also define how far back users can view device data and whether they have access to boundaries or not.
User Settings
User settings allow configuration of the date and time, metrics, and visualization behaviors used when presenting information in the system. Whenever a setting for a given user needs to be updated, at least one setting must be provided.
Example:
{
"defaultMapLayer": "streets",
"speedUnits": "mph",
"distanceUnits": "mi",
"homepage": "trackers",
"alertsNotificationsOn": true,
"temperatureUnits": "F",
"timeZone": "US/Central"
}
User Alert Settings
User alert settings allow you to configure the alert value and notification channels (email, SMS, app, or push) for each alert type that will be used when the alert is raised. Whenever you need to update an alert setting for a user, at least one alert setting other than alertName must be provided.
{
"alertName": "Speeding",
"alertValue": "137",
"smsNotification": false,
"emailNotification": true,
"appNotification": false,
"pushNotification": true,
"alertMetadata": "alertMetadata"
}