Skip to main content
Version: 5.7.0

SysExtendPxExpiry

tip

This method is available in Cloud Code scripts only.

Extends the px expiry of profileId by the specified amount of seconds. If no time limit is given, the value of brainCloud property presPxExpirySecs will be used. If seconds is greater than brainCloud property presPxExpiryExtSecMax, then it will just extend by presPxExpiryExtSecMax.

ServiceOperation
presenceSYS_EXTEND_PX_EXPIRY

Method Parameters

ParameterDescription
profileIdTarget profile ID.
secondsNumber of seconds to extend px expiry

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": null,
"status": 200
}