Skip to Content
Xeonr Developer Docs
API SpecificationMy profile

Show or hide profile widgets

POST
/xeonr.profiles.v2.MeService/SetMyWidgetPreferences

Sets whether individual product widgets show on the caller's public profile. An absent preference means visible, so only deviations are stored. Send up to 50 preferences; if a widget key repeats, the later entry wins. Widgets that are not named keep their current setting.

Each widget_key must be namespaced by its product (xmb.now_playing for product xmb) and the product must exist, else INVALID_ARGUMENT. A delegated product token may only set keys under its own product (PERMISSION_DENIED otherwise). Returns the profile after the update.

Required scopes: profiles:profile:edit

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

preferences?array<>

Preferences to set. Later entries win on duplicate keys.

Items1 <= items <= 50
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://profiles-api.xeonr.io/xeonr.profiles.v2.MeService/SetMyWidgetPreferences" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "myProfile": "map[profile:map[displayName:Luke handle:luke] visibility:VISIBILITY_PUBLIC]"
}