| POST | /cmd/configure/super-win |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Six4Win.WebApi.ServiceModel
Imports Six4Win
Namespace Global
Namespace Six4Win
Public Partial Class PeriodOfDay
Public Overridable Property Start As TimeOnly
Public Overridable Property [End] As TimeOnly
End Class
Public Partial Class SuperWinConfig
Public Overridable Property IsActive As Boolean
Public Overridable Property StakePct As Single
Public Overridable Property MinPrizesPerDay As Integer
Public Overridable Property MaxPrizesPerDay As Integer
Public Overridable Property ActivePeriod As PeriodOfDay
Public Overridable Property MinDailyPrizeInPct As Single
Public Overridable Property MinIntervalBetweenMultiplePrizesInMinutes As Integer
Public Overridable Property AllowSuperWinForSpecialBets As Boolean
Public Overridable Property WebPlayerWinnerCooldownPolicy As WebPlayerWinnerCooldownPolicyConfig
End Class
Public Partial Class WebPlayerWinnerCooldownPolicyConfig
Public Overridable Property IsActive As Boolean
Public Overridable Property CooldownIntervalInDays As Integer
End Class
End Namespace
Namespace Six4Win.WebApi.ServiceModel
Public Partial Class ConfigureSuperWin
Public Overridable Property Id As String
Public Overridable Property Configuration As SuperWinConfig
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/configure/super-win HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":"String","configuration":{"isActive":false,"stakePct":0,"minPrizesPerDay":0,"maxPrizesPerDay":0,"activePeriod":{"start":"PT0S","end":"PT0S"},"minDailyPrizeInPct":0,"minIntervalBetweenMultiplePrizesInMinutes":0,"allowSuperWinForSpecialBets":false,"webPlayerWinnerCooldownPolicy":{"isActive":false,"cooldownIntervalInDays":0}}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}