| POST | /cmd/organizations |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | string | No | |
| Name | body | string | No | |
| Address | body | Address | No | |
| Locale | body | Locale | No | |
| IntegrationsData | body | Dictionary<string, string> | No | |
| WinningsExpirationPolicy | body | WinningsExpirationPolicy | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Street | form | string | Yes | |
| City | form | string | Yes | |
| State | form | string | Yes | |
| PostalCode | form | string | Yes | |
| Country | form | Ref | Yes | |
| GPS | form | GPSCoordinates | Yes | |
| Data | form | RecordDictionary<string, string> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | Yes | |
| Val | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Lat | form | double | No | |
| Lng | form | double | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TimeZone | form | Ref | No | |
| Currency | form | Ref | No | |
| Language | form | Ref | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Enabled | form | bool | No | |
| Interval | form | TimeSpan | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/organizations HTTP/1.1
Host: api.sbbet.ath.cx
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: String,
name: String,
address:
{
street: String,
city: String,
state: String,
postalCode: String,
country:
{
id: String,
val: String
},
gps:
{
lat: 0,
lng: 0
},
data:
{
String: String
}
},
locale:
{
timeZone:
{
id: String,
val: String
},
currency:
{
id: String,
val: String
},
language:
{
id: String,
val: String
}
},
integrationsData:
{
String: String
},
winningsExpirationPolicy:
{
enabled: False,
interval: PT0S
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}