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

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 UI setting

post
/user/settings/ui/read

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.

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
keystring · min: 1 · max: 50Required

Setting key. 1 to 50 characters, and may contain only English letters, digits, _ and -.

Pattern: ^[A-Za-z0-9_-]+$
Responses
200

The stored value

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
valuestring · nullableOptional

The stored value, or null if the key has never been written.

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

Update UI setting

post
/user/settings/ui/update

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.

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
keystring · min: 1 · max: 50Required

Setting key. 1 to 50 characters, and may contain only English letters, digits, _ and -.

Pattern: ^[A-Za-z0-9_-]+$
valuestring · max: 8192Required

Value to store. 0 to 8192 characters. May not be null, though an empty string is accepted.

Responses
200

Setting written

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

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