Show or hide profile widgets
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
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
Preferences to set. Later entries win on duplicate keys.
1 <= items <= 50Response 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]"
}Get your own profile POST
Returns the caller's own profile as they see it: the public projection, its visibility and their widget preferences. The first call creates the caller's override record (visibility `VISIBILITY_UNLISTED`), so creation happens on a deliberate visit to Profiles, never as a side effect of signing in somewhere else. A delegated token (a product acting for the user) sees only that product's slice of the widget preferences. **Required scopes:** `profiles:profile:read`
Update your profile POST
Changes the caller's display name, bio and visibility. Only the fields named in `update_mask` are written (`display_name`, `bio`, `visibility`); everything else is left alone. A field the mask names must be present in the request: an empty display name or bio clears it, and the handle is shown instead. Values are trimmed. Display name is at most 64 characters, bio at most 500. An empty mask, a path other than those three, or a masked field that is missing answers `INVALID_ARGUMENT`; so does `VISIBILITY_UNSPECIFIED`. First-party sessions only: a delegated product token is refused even when it carries the scope. Returns the profile after the update. **Required scopes:** `profiles:profile:edit`