Skip to Content
Xeonr Developer Docs
API SpecificationMy profile

Update your profile

POST
/xeonr.profiles.v2.MeService/UpdateMyProfile

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

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

updateMask?string

The fields to write: any of display_name, bio, visibility. An empty mask is invalid_argument rather than a no-op that looks like it worked, and so is a path the server cannot write.

displayName?|

New display name, when named in the mask. Empty clears it (the handle shows instead).

Lengthlength <= 64
bio?|

New bio, when named in the mask. Empty clears it.

Lengthlength <= 500
visibility?|

New visibility, when named in the mask. VISIBILITY_UNSPECIFIED is refused.

[key: string]?never

Response Body

application/json

application/json

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