Skip to Content
Xeonr Developer Docs
API SpecificationDevices and preferences

Clear my preference

POST
/xeonr.notify.v1.DeviceService/ClearMyPreference

Removes an override so the cell inherits from a wider scope again. Distinct from setting it to off: off is a decision, absent is "whatever the product thinks". An unspecified channel clears every channel at that scope.

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
Lengthlength <= 64
category?string
Lengthlength <= 64
channel?string

Unspecified clears every channel at this scope.

Value in"CHANNEL_UNSPECIFIED" | "CHANNEL_IN_APP" | "CHANNEL_WEB_PUSH" | "CHANNEL_NATIVE_PUSH" | "CHANNEL_EMAIL" | "CHANNEL_DISCORD" | "CHANNEL_WEBHOOK"
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.DeviceService/ClearMyPreference" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{}