| POST | /cmd/configure/thresholds/custom |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ChangeCustomThreshold
{
public String id = null;
public Integer poolId = null;
public BigDecimal amount = null;
public String getId() { return id; }
public ChangeCustomThreshold setId(String value) { this.id = value; return this; }
public Integer getPoolId() { return poolId; }
public ChangeCustomThreshold setPoolId(Integer value) { this.poolId = value; return this; }
public BigDecimal getAmount() { return amount; }
public ChangeCustomThreshold setAmount(BigDecimal value) { this.amount = value; return this; }
}
}
Java ChangeCustomThreshold DTOs
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/thresholds/custom HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":"String","poolId":0,"amount":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"}}