Skip to main content
Version: 5.7.0

SysInitializePresence

Creates or updates the presence of \<profileId>. \<visible> is optional (defaults to true). \<activity> is optional. \<expirySecs> is optional (defaults to brainCloud property \<presPxExpirySecs>).

ServiceOperation
presenceSYS_INITIALIZE_PRESENCE

Method Parameters

ParameterDescription
profileIdTarget profile id.
visibleShould user appear in presence? True by default.
activityPresence activity record json. Size of the given activity must be equal to or less than the Max content size (bytes) app setting (see Messaging > Presence in the portal.)
expirySecsNumber of seconds before expiry.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.