POST Bets/CreateBet

Request Information

URI Parameters

None.

Body Parameters

BetModel
NameDescriptionTypeAdditional information
UserId

integer

None.

ParentId

integer

None.

SuperId

integer

None.

AdminId

integer

None.

UserName

string

None.

SportsId

integer

None.

EventId

string

None.

EventName

string

None.

MarketId

string

None.

MarketName

string

None.

RunnerId

string

None.

RunnerName

string

None.

BetType

string

None.

Odds

decimal number

None.

Price

decimal number

None.

Stake

decimal number

None.

Exposure

decimal number

None.

Profit

decimal number

None.

BetStatus

string

None.

Result

string

None.

IpAddress

string

None.

id

integer

None.

deleted

boolean

None.

status

boolean

None.

createdOn

date

None.

updatedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "ParentId": 2,
  "SuperId": 3,
  "AdminId": 4,
  "UserName": "sample string 5",
  "SportsId": 6,
  "EventId": "sample string 7",
  "EventName": "sample string 8",
  "MarketId": "sample string 9",
  "MarketName": "sample string 10",
  "RunnerId": "sample string 11",
  "RunnerName": "sample string 12",
  "BetType": "sample string 13",
  "Odds": 14.1,
  "Price": 15.1,
  "Stake": 16.1,
  "Exposure": 17.1,
  "Profit": 18.1,
  "BetStatus": "sample string 19",
  "Result": "sample string 20",
  "IpAddress": "sample string 21",
  "id": 22,
  "deleted": true,
  "status": true,
  "createdOn": "2024-12-23T05:27:54.9145282+05:30",
  "updatedOn": "2024-12-23T05:27:54.9145282+05:30"
}

application/xml, text/xml

Sample:
<BetModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FixWebApi.Models">
  <createdOn>2024-12-23T05:27:54.9145282+05:30</createdOn>
  <deleted>true</deleted>
  <id>22</id>
  <status>true</status>
  <updatedOn>2024-12-23T05:27:54.9145282+05:30</updatedOn>
  <AdminId>4</AdminId>
  <BetStatus>sample string 19</BetStatus>
  <BetType>sample string 13</BetType>
  <EventId>sample string 7</EventId>
  <EventName>sample string 8</EventName>
  <Exposure>17.1</Exposure>
  <IpAddress>sample string 21</IpAddress>
  <MarketId>sample string 9</MarketId>
  <MarketName>sample string 10</MarketName>
  <Odds>14.1</Odds>
  <ParentId>2</ParentId>
  <Price>15.1</Price>
  <Profit>18.1</Profit>
  <Result>sample string 20</Result>
  <RunnerId>sample string 11</RunnerId>
  <RunnerName>sample string 12</RunnerName>
  <SportsId>6</SportsId>
  <Stake>16.1</Stake>
  <SuperId>3</SuperId>
  <UserId>1</UserId>
  <UserName>sample string 5</UserName>
</BetModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.