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
enum<string>
required

Preference family that determines the allowed data payload.

Available options:
GRID,
FAVOURITE,
DASHBOARD,
SCRATCH,
WEB_IDE,
OBSERVABILITY
Example:

"GRID"

data
object[]
required

Preference payload items validated against the selected preference type. OBSERVABILITY accepts exactly one saved view with schemaVersion: 1, reusable state (tab, timeframe, search, services, kind, outcome, resourceId, actorId, severity, event, anchorType, logFilter) and filtersOpen. Selected execution and investigation identifiers are excluded; the payload is limited to 64 KiB.

Example:
desc
string

Optional operator-facing preference description.

Example:

"Default orders grid for support staff."

referenceType
string

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

Example:

"orders"

reference
string

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

Example:

"support-dashboard"

metadata
object | null

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