For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Read user settings

post
/user/settings/read

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.

Authorizations
AuthorizationstringRequired

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.

Responses
200

The user's settings

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
first_user_balance_warning_periodstringOptional

How 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.

second_user_balance_warning_periodstringOptional

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.

post/user/settings/read
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.

Update user settings

post
/user/settings/update

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.

Authorizations
AuthorizationstringRequired

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.

Body
time_zonestringRequired

ISO timezone ID, for example Europe/Amsterdam.

localestringOptional

Locale code, for example en or nl_NL.

measurement_systemstring · enumOptional

Measurement system.

Possible values:
date_formatstring,null · enum · nullableOptional

Date representation. Cleared if omitted, and absent from the parameter list on older prose pages, which is how it gets wiped unnoticed.

Possible values:
hour_modestring,null · enum · nullableOptional

Time representation. Cleared if omitted, and absent from the parameter list on older prose pages, which is how it gets wiped unnoticed.

Possible values:
geocoderstring,null · enum · nullableOptional

Preferred geocoder.

Possible values:
route_providerstring,null · enum · nullableOptional

Preferred route provider.

Possible values:
translitbooleanOptional

true if SMS notifications should be transliterated.

Responses
200

Settings updated

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/user/settings/update
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).

Update file storage settings

post
/user/settings/file_storage/update

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.

Authorizations
AuthorizationstringRequired

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.

Body
auto_overwritebooleanOptional

Whether uploading a file with an existing name overwrites it. Defaults to false when omitted.

Responses
200

File storage settings updated

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/user/settings/file_storage/update
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

Endpoint
Method
What it does

POST

Read UI setting

POST

Update UI setting

Last updated

Was this helpful?