/
v3.0.11Get access

setSessionDurationLimit

Sets limits on the user’s daily, weekly and monthly session durations in minutes

Request parameters:

NameDescriptionTypeValuesDefault
dailyDuration
Maximum session time allowed per daynumber--
monthlyDuration
Maximum session time allowed per monthnumber--
weeklyDuration
Maximum session time allowed per weeknumber--

Call example:

setSessionDurationLimit({
  dailyDuration: 180,
  monthlyDuration: 3600
})

Response examples:

{
  code: 0,
  rid: 1917249746,
  data: {
    result: 0,
    result_text: null,
    details: {
      Changed: [{
        Type: 8,
        Limit: 10,
        PeriodType: 2,
        Period: 1,
        ProductCategoryId: 1
      }, {
        Type: 8,
        PeriodType: 3,
        Period: 1,
        ProductCategoryId: 1
      }, {
        Type: 8,
        PeriodType: 4,
        Period: 1,
        ProductCategoryId: 1
      }],
      UnChanged: []
    }
  },
  hasError: false,
  error: {
    message: ''
  }
}

Response parameters:

NameDescriptionTypeValues
Changed
This section lists the three limit configurations that were successfully updatedarray-
└─
object
└─ Type
The internal system identifier for the limit typenumber-
└─ ProductCategoryId
To which the specific session duration limit is applied (Casino/Sports).number-
└─ PeriodType
An integer-based enumeration that defines the temporal scope of the limit (2: Daily, 3: Weekly, 4: Monthly) for recurring session duration resets.number-
└─ Limit
The actual value of the limit setnumber-
└─ Period
The frequency of the limit resetstring-
UnChanged
This section lists the three limit configurations that were not updatedarray-