Appearance
Users
Manage account users/drivers.
Get current User Profile.
Returns the profile for the current autthenticated user.
GET
http
https://api.zubiecar.com/api/v2/zinc/userSample response 200
json
{
"account_key": "ExampleKey",
"account_role": "admin",
"created": "2018-02-20T12:00:00",
"developer": false,
"device_events": true,
"email": "bob@example.com",
"email_notification": true,
"first_name": "Bob",
"groups": [
{
"key": "SampleKey",
"name": "Midwest Region"
}
],
"hard_braking_events": true,
"crash_events": true,
"key": "SampleKey",
"last_name": "Roberts",
"low_fuel_events": "all",
"low_fuel_threshold": 15,
"over_speed_events": true,
"partner_name": "Zubie Fleet Connect",
"preferred_locale": "en_US",
"profile_image": "http://image.server.com/image_path/image_file.png",
"push_notification": true,
"sms_phone_number": "15551234567",
"speed_threshold": 80,
"speed_threshold_um": "mph",
"tags": [
{
"color": "#CCCCCC",
"key": "SampleKey",
"value": "Blue Stuff"
}
],
"trip_events": "mine",
"updated": "2018-02-20 12:00:00",
"vehicle_health_events": "mine",
"vehicle_location_events": "mine",
"vehicle_maintenance_events": "mine",
"vehicle_schedule_events": "none"
}Get List of Users/Drivers
Lists users and drivers in account. Restricted based on API user's group permissions.
GET
http
https://api.zubiecar.com/api/v2/zinc/usersQuery Parameters
| Property | Type | Description |
|---|---|---|
| cursor | string | The cursor string used for pagination, signifying the object ID where to start the results. |
| size | string | The number of results to return per call. Defaults to 100 if not provided. |
| expand | string | Default: [tags, groups, apps, vehicle_location] Items Enum: tags groups apps vehicle_location Optional list of expanded properties to include in results. |
Sample response 200
json
{
"users": [
{
"account_key": "ExampleKey",
"account_role": "admin",
"created": "2018-02-20T12:00:00",
"developer": false,
"device_events": true,
"email": "bob@example.com",
"email_notification": true,
"first_name": "Bob",
"groups": [
{
"key": "SampleKey",
"name": "Midwest Region"
}
],
"hard_braking_events": true,
"crash_events": true,
"key": "SampleKey",
"last_name": "Roberts",
"low_fuel_events": "all",
"low_fuel_threshold": 15,
"over_speed_events": true,
"partner_name": "Zubie Fleet Connect",
"preferred_locale": "en_US",
"profile_image": "http://image.server.com/image_path/image_file.png",
"push_notification": true,
"sms_phone_number": "15551234567",
"speed_threshold": 80,
"speed_threshold_um": "mph",
"tags": [
{
"color": "#CCCCCC",
"key": "SampleKey",
"value": "Blue Stuff"
}
],
"trip_events": "mine",
"updated": "2018-02-20 12:00:00",
"vehicle_health_events": "mine",
"vehicle_location_events": "mine",
"vehicle_maintenance_events": "mine",
"vehicle_schedule_events": "none"
}
]
}Create User
Create a new user or driver.
POST
http
https://api.zubiecar.com/api/v2/zinc/usersRequest Body Schema
| Property | Type | Description |
|---|---|---|
| account_role | string | The user’s role within the parent account. Possible values are admin, viewer (account read-only access), individual (single user read-only), and driver. |
| device_events | boolean | User subscribed for device notifications. |
| string | User email address. | |
| email_notification | boolean | User subscribed to receive notifications via email. |
| first_name | string | First name. |
| last_name | string | Last name. |
| hard_braking_events | boolean | User subscribed for hard brake notifications. |
| low_fuel_events | string | User subscribed for low fuel notifications. Possible values are none, mine, others or all. |
| low_fuel_threshold | integer | Default: 15 A number indicating the percentage under which the user receives low fuel notifications. Range of 1 - 50 inclusive. |
| marketing_opt_out | boolean | Default: false User subscribed for Zubie marketing emails. |
| over_speed_events | boolean | User subscribed for speeding notifications. |
| preferred_locale | string | The user’s locale preference. |
| profile_image | string | The URL of the profile image for this user. |
| push_notification | boolean | User subscribed to receive notifications via app push notification. |
| sms_phone_number | string | User sms phone number. |
| speed_threshold | integer | Threshold to trigger speeding notifications, if enabled. |
| speed_threshold_um | string | Unit of measure for speed threshold. Default mph. |
| trip_events | string | User subscribed for trip-end notifications. Possible values are none, mine, others or all. |
| vehicle_health_events | boolean | A boolean indicating whether the user receives vehicle health notifications. |
| vehicle_location_events | string | User subscribed for arrival/departure notifications for places where arrival or departure events are enabled. Possible values are none, mine, others or all. |
| vehicle_maintenance_events | string | User subscribed for scheduled maintenance notifications. Possible values are none, mine, others or all. |
| vehicle_schedule_events | string | User subscribed for schedule-based notifications (off hour trips). Possible values are none, mine, others or all. |
| tag_keys | Array of strings | Tags assigned to the user. Multiple values can be provided. Can be cleared by posting empty value. |
| group_keys | Array of string | Groups assigned to the user. Can be cleared by posting empty value. |
Sample request body
json
{
"account_role": "admin",
"device_events": true,
"email": "bob@example.com",
"email_notification": true,
"first_name": "Bob",
"last_name": "Roberts",
"hard_braking_events": true,
"low_fuel_events": "all",
"low_fuel_threshold": 15,
"marketing_opt_out": false,
"over_speed_events": true,
"preferred_locale": "en_US",
"profile_image": "http://image.server.com/image_path/image_file.png",
"push_notification": true,
"sms_phone_number": "15551234567",
"speed_threshold": 80,
"speed_threshold_um": "mph",
"trip_events": "mine",
"vehicle_health_events": true,
"vehicle_location_events": "mine",
"vehicle_maintenance_events": "mine",
"vehicle_schedule_events": "none",
"tag_keys": [
"SampleKey1",
"SampleKey2"
],
"group_keys": [
"SampleKey1",
"SampleKey2"
]
}Get a User
Gets a User Profile by Key.
GET
http
https://api.zubiecar.com/api/v2/zinc/user/{user_key}Path Parameters
| Property | Type | Description |
|---|---|---|
| user_key | required | Unique user key. |
Sample response 200
json
{
"account_key": "ExampleKey",
"account_role": "admin",
"created": "2018-02-20T12:00:00",
"developer": false,
"device_events": true,
"email": "bob@example.com",
"email_notification": true,
"first_name": "Bob",
"groups": [
{
"key": "SampleKey",
"name": "Midwest Region"
}
],
"hard_braking_events": true,
"crash_events": true,
"key": "SampleKey",
"last_name": "Roberts",
"low_fuel_events": "all",
"low_fuel_threshold": 15,
"over_speed_events": true,
"partner_name": "Zubie Fleet Connect",
"preferred_locale": "en_US",
"profile_image": "http://image.server.com/image_path/image_file.png",
"push_notification": true,
"sms_phone_number": "15551234567",
"speed_threshold": 80,
"speed_threshold_um": "mph",
"tags": [
{
"color": "#CCCCCC",
"key": "SampleKey",
"value": "Blue Stuff"
}
],
"trip_events": "mine",
"updated": "2018-02-20 12:00:00",
"vehicle_health_events": "mine",
"vehicle_location_events": "mine",
"vehicle_maintenance_events": "mine",
"vehicle_schedule_events": "none"
}Update User
Update a User.
POST
http
https://api.zubiecar.com/api/v2/zinc/user/{user_key}Path Parameters
| Property | Type | Description |
|---|---|---|
| user_key | required | Unique user key. |
Request Body Schema
| Property | Type | Description |
|---|---|---|
| account_role | string | The user’s role within the parent account. Possible values are admin, viewer (account read-only access), individual (single user read-only), and driver. |
| device_events | boolean | User subscribed for device notifications. |
| string | User email address. | |
| email_notification | boolean | User subscribed to receive notifications via email. |
| first_name | string | First name. |
| last_name | string | Last name. |
| hard_braking_events | boolean | User subscribed for hard brake notifications. |
| low_fuel_events | string | User subscribed for low fuel notifications. Possible values are none, mine, others or all. |
| low_fuel_threshold | integer | Default: 15 A number indicating the percentage under which the user receives low fuel notifications. Range of 1 - 50 inclusive. |
| marketing_opt_out | boolean | Default: false User subscribed for Zubie marketing emails. |
| over_speed_events | boolean | User subscribed for speeding notifications. |
| preferred_locale | string | The user’s locale preference. |
| profile_image | string | The URL of the profile image for this user. |
| push_notification | boolean | User subscribed to receive notifications via app push notification. |
| sms_phone_number | string | User sms phone number. |
| speed_threshold | integer | Threshold to trigger speeding notifications, if enabled. |
| speed_threshold_um | string | Unit of measure for speed threshold. Default mph. |
| trip_events | string | User subscribed for trip-end notifications. Possible values are none, mine, others or all. |
| vehicle_health_events | boolean | A boolean indicating whether the user receives vehicle health notifications. |
| vehicle_location_events | string | User subscribed for arrival/departure notifications for places where arrival or departure events are enabled. Possible values are none, mine, others or all. |
| vehicle_maintenance_events | string | User subscribed for scheduled maintenance notifications. Possible values are none, mine, others or all. |
| vehicle_schedule_events | string | User subscribed for schedule-based notifications (off hour trips). Possible values are none, mine, others or all. |
| tag_keys | Array of strings | Tags assigned to the user. Multiple values can be provided. Can be cleared by posting empty value. |
| group_keys | Array of string | Groups assigned to the user. Can be cleared by posting empty value. |
Sample request body
json
{
"account_role": "admin",
"device_events": true,
"email": "bob@example.com",
"email_notification": true,
"first_name": "Bob",
"hard_braking_events": true,
"last_name": "Roberts",
"low_fuel_events": "all",
"low_fuel_threshold": 15,
"marketing_opt_out": false,
"over_speed_events": true,
"preferred_locale": "en_US",
"profile_image": "http://image.server.com/image_path/image_file.png",
"push_notification": true,
"sms_phone_number": "15551234567",
"speed_threshold": 80,
"speed_threshold_um": "mph",
"trip_events": "mine",
"vehicle_health_events": true,
"vehicle_location_events": "mine",
"vehicle_maintenance_events": "mine",
"vehicle_schedule_events": "none",
"tag_keys": [
"SampleKey1",
"SampleKey2"
],
"group_keys": [
"SampleKey1",
"SampleKey2"
]
}Delete User
Deactivates user account.
DELETE
http
https://api.zubiecar.com/api/v2/zinc/user/{user_key}Path Parameters
| Property | Type | Description |
|---|---|---|
| user_key | required | Unique user key. |

