User UI settings
A key-value store for client application state, kept per user but not guaranteed.
These settings are a key-value store for client applications that use the API, holding whatever state an application wants to survive between sessions, such as a saved layout or a filter.
Treat it like browser local storage rather than like a database. Storage is long-term but not guaranteed: once the quota is exhausted, stored data can be deleted.
Two behaviours are worth knowing before building on it. A key that has never been written returns value: null with HTTP 200, which is not an error. And a setting can only be overwritten, never removed: value may not be null, and there is no delete operation.
API actions
API base path: /user/settings/ui.
Operations that list no errors of their own return only the general error codes.
Read one interface setting by key.
A key that was never written returns value: null with HTTP 200. It is not an error: the operation has no error path.
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.
Setting key. 1 to 50 characters, and may contain only English letters, digits, _ and -.
^[A-Za-z0-9_-]+$The stored value
true if request finished successfully.
trueThe stored value, or null if the key has never been written.
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/ui/read HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 14
{
"key": "text"
}{
"success": true,
"value": null
}Write one interface setting.
Both key and value are required, and value may not be null. A setting cannot be removed, only overwritten, since no delete operation exists and null is rejected.
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.
Setting key. 1 to 50 characters, and may contain only English letters, digits, _ and -.
^[A-Za-z0-9_-]+$Value to store. 0 to 8192 characters. May not be null, though an empty string is accepted.
Setting written
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.
Over quota, error code 268.
Error response object
POST /v2/user/settings/ui/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"key": "text",
"value": "text"
}{
"success": true
}Errors
These errors come in addition to the general error codes:
268 - Over quota. The storage available to the user for these settings is exhausted, and no new setting can be added until some stored data is removed.
Last updated
Was this helpful?