Skip to Content
Xeonr Developer Docs
API SpecificationDevices and preferences

Set my preference

POST
/xeonr.notify.v1.DeviceService/SetMyPreference

Sets one switch, at one scope: empty app_slug and empty category is the everything row, an app with no category is everything that product sends, and both together is one kind of event from one product. The most specific row that matches wins, per channel. Writing the state that already resolves is a no-op rather than an error, so a grid can submit whatever the person clicked. A channel that cannot serve this person at all is refused, and the in-app inbox cannot be switched off — it is the delivery record.

Required scopes: notify:devices:edit — or notify:preferences:edit on a token a product obtained by RFC 8693 exchange to act for this person, in which case the call is confined to that product's own slice

Authorization

BearerAuth
AuthorizationBearer <token>

An access token from Xeonr Auth, presented as Authorization: Bearer <token>. Its audience must include https://notify.xeonr.io, and it must carry the scope the method lists.

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

appSlug?string

Empty app_slug and empty category is the everything row.

Lengthlength <= 64
category?string
Lengthlength <= 64
channel?not unknown

Channel is how a delivery reaches somebody. In-app is the inbox row and always exists for a matched subscriber, so the ledger names every person a message reached even when nothing was pushed.

Value in"CHANNEL_UNSPECIFIED" | "CHANNEL_IN_APP" | "CHANNEL_WEB_PUSH" | "CHANNEL_NATIVE_PUSH" | "CHANNEL_EMAIL" | "CHANNEL_DISCORD" | "CHANNEL_WEBHOOK"
enabled?boolean

validate:skip a bool has no bounds

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.DeviceService/SetMyPreference" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "preference": "map[appSlug:xmb category:requests channel:CHANNEL_EMAIL enabled:false updatedAt:2026-10-22T09:30:00Z]"
}