| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
Content-Type: application/json
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: application/json
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}