| POST | /cmd/configure/lcp |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ConfigureLocalCodePot
{
public String id = null;
public String scopeId = null;
public String scopeName = null;
public LCPConfiguration configuration = null;
public String getId() { return id; }
public ConfigureLocalCodePot setId(String value) { this.id = value; return this; }
public String getScopeId() { return scopeId; }
public ConfigureLocalCodePot setScopeId(String value) { this.scopeId = value; return this; }
public String getScopeName() { return scopeName; }
public ConfigureLocalCodePot setScopeName(String value) { this.scopeName = value; return this; }
public LCPConfiguration getConfiguration() { return configuration; }
public ConfigureLocalCodePot setConfiguration(LCPConfiguration value) { this.configuration = value; return this; }
}
public static class LCPConfiguration
{
public Boolean isActive = null;
public ThresholdInterval interval = null;
public BigDecimal pct = null;
public Boolean getIsActive() { return isActive; }
public LCPConfiguration setIsActive(Boolean value) { this.isActive = value; return this; }
public ThresholdInterval getInterval() { return interval; }
public LCPConfiguration setInterval(ThresholdInterval value) { this.interval = value; return this; }
public BigDecimal getPct() { return pct; }
public LCPConfiguration setPct(BigDecimal value) { this.pct = value; return this; }
}
public static class ThresholdInterval
{
public BigDecimal start = null;
public BigDecimal end = null;
public BigDecimal getStart() { return start; }
public ThresholdInterval setStart(BigDecimal value) { this.start = value; return this; }
public BigDecimal getEnd() { return end; }
public ThresholdInterval setEnd(BigDecimal value) { this.end = value; return this; }
}
}
Java ConfigureLocalCodePot 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/lcp HTTP/1.1
Host: s4w2.api.bettor.cc
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":"String","scopeId":"String","scopeName":"String","configuration":{"isActive":false,"interval":{"start":0,"end":0},"pct":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"}}