Settings
An account's own preferences for timezone, formats, balance alerts, and file storage.
User settings are the account's own preferences: the timezone and formats everything else is rendered in, when to warn about a low balance, and how uploaded files are handled.
Two of these are stored separately from the rest and are visible only to a master user, which is worth knowing before reading the response. balance_alert_settings and file_storage_settings, along with first_user_balance_warning_period and second_user_balance_warning_period, are absent entirely unless the caller holds the admin right, rather than merely being read-only.
The rest of the settings object is filtered by the GIS package of the telematics service provider (TSP) before it is returned, so a field can be absent or null on a platform with a restricted package.
Settings object
balance_alert_settings.emails lists the addresses that receive balance alerts, and an empty array turns those alerts off. file_storage_settings.auto_overwrite defaults to false.
API actions
API base path: /user/settings.
Operations that list no errors of their own return only the general error codes.
Required sub-user rights: admin for the balance_alert_settings and file_storage_settings fields, available only to master users.
Return the current user's settings.
file_storage_settings, balance_alert_settings, first_user_balance_warning_period, and second_user_balance_warning_period are absent entirely unless the caller holds the admin right, rather than merely read-only.
The settings object is filtered by the GIS package of the telematics service provider (TSP) before being returned, so some fields may be absent or null on platforms with a restricted package.
Also accepts GET with the same parameters as query-string values.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
The user's settings
true if request finished successfully.
trueHow long before a projected zero balance the first alert is sent, as a duration such as 8d. Present only when the caller holds the admin right.
How long before a projected zero balance the second alert is sent, as a duration such as 2d. Present only when the caller holds the admin right.
Bad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error response object
POST /v2/user/settings/read HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"settings": {
"locale": "text",
"time_zone": "text",
"date_format": "ddMMyyyy_dots",
"hour_mode": "TWELVE_HOURS",
"measurement_system": "metric",
"geocoder": "google",
"route_provider": "google",
"translit": true
},
"file_storage_settings": {
"auto_overwrite": true
},
"balance_alert_settings": {
"emails": [
"text"
]
},
"first_user_balance_warning_period": "text",
"second_user_balance_warning_period": "text"
}Required sub-user rights: admin for the balance_alert_settings and file_storage_settings fields, available only to master users.
Replace the current user's settings.
This is a full replacement, not a merge, and only time_zone is required. Any writable field omitted from the request is cleared, including date_format and hour_mode.
Send every field you intend to keep. file_storage_settings and balance_alert_settings are stored separately and do survive omission.
Updating balance_alert_settings or file_storage_settings requires the admin right.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
ISO timezone ID, for example Europe/Amsterdam.
Locale code, for example en or nl_NL.
Measurement system.
Date representation. Cleared if omitted, and absent from the parameter list on older prose pages, which is how it gets wiped unnoticed.
Time representation. Cleared if omitted, and absent from the parameter list on older prose pages, which is how it gets wiped unnoticed.
Preferred geocoder.
Preferred route provider.
true if SMS notifications should be transliterated.
Settings updated
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Operation not permitted, error code 13: the caller lacks the admin right needed for balance_alert_settings or file_storage_settings.
Error response object
POST /v2/user/settings/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 278
{
"time_zone": "text",
"locale": "text",
"measurement_system": "metric",
"date_format": "ddMMyyyy_dots",
"hour_mode": "TWELVE_HOURS",
"geocoder": "google",
"route_provider": "google",
"translit": true,
"balance_alert_settings": {
"emails": [
"text"
]
},
"file_storage_settings": {
"auto_overwrite": true
}
}{
"success": true
}Required sub-user rights: admin (available only to master users).
Replace the current user's file storage settings. Requires the admin right.
Send the settings fields at the top level of the request body, not wrapped in a file_storage_settings object. The operation deserializes the whole body into the settings object, so a wrapped body is accepted, returns success: true, and silently writes defaults instead of the values supplied.
This is a full replacement: an omitted field is written as its default.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
Whether uploading a file with an existing name overwrites it. Defaults to false when omitted.
File storage settings updated
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Operation not permitted, error code 13: the caller lacks the admin right.
Error response object
POST /v2/user/settings/file_storage/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"auto_overwrite": true
}{
"success": true
}Errors
These errors come in addition to the general error codes:
13 - Operation not permitted, when the user has insufficient rights.
More in this section
User UI settings
Last updated
Was this helpful?