Skip to main content
POST
Create a preference.

Authorizations

Authorization
string
header
required

Bearer JWT token or API Key (sk-*).

Body

application/json
name
string
required

Stable preference name.

Example:

"orders-grid-default"

type
string
required

Preference family that determines the allowed data payload.

Example:

"GRID"

referenceType
string
required

Reference type used when the preference is scoped to a resource family.

Example:

"orders"

data
array[]
required

Preference payload items validated against the selected preference type.

Example:
desc
string

Optional operator-facing preference description.

Example:

"Default orders grid for support staff."

reference
string

Reference id used when the preference is scoped to one resource.

Example:

"support-dashboard"

metadata
object

Optional resource metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use.

Example:
global
boolean

Whether the preference is shared with all eligible users.

Example:

false

default
boolean

Whether this preference becomes the default selection.

Example:

true

autoFit
boolean

Whether the grid should auto-fit columns when the preference is applied.

Example:

true

Response

OK.

Last modified on September 5, 2026