POST api/Bet/Place/Session?userId={userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

Required

Body Parameters

betDTO
NameDescriptionTypeAdditional information
user_id

integer

None.

sport_id

integer

None.

match_id

integer

None.

bet_type

string

None.

bet_amount

decimal number

None.

selection_id

integer

None.

selection_name

string

None.

selection_category

string

None.

selection_type

string

None.

back_value

integer

None.

lay_value

integer

None.

potential_profit

decimal number

None.

potential_loss

decimal number

None.

match_name

string

None.

league_name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "user_id": 1,
  "sport_id": 1,
  "match_id": 1,
  "bet_type": "sample string 1",
  "bet_amount": 1.0,
  "selection_id": 1,
  "selection_name": "sample string 2",
  "selection_category": "sample string 3",
  "selection_type": "sample string 4",
  "back_value": 1,
  "lay_value": 1,
  "potential_profit": 1.0,
  "potential_loss": 1.0,
  "match_name": "sample string 5",
  "league_name": "sample string 6"
}

application/xml, text/xml

Sample:
<betDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BettingAPI.Models.DTOs.Bet">
  <back_value>1</back_value>
  <bet_amount>1</bet_amount>
  <bet_type>sample string 1</bet_type>
  <lay_value>1</lay_value>
  <league_name>sample string 6</league_name>
  <match_id>1</match_id>
  <match_name>sample string 5</match_name>
  <potential_loss>1</potential_loss>
  <potential_profit>1</potential_profit>
  <selection_category>sample string 3</selection_category>
  <selection_id>1</selection_id>
  <selection_name>sample string 2</selection_name>
  <selection_type>sample string 4</selection_type>
  <sport_id>1</sport_id>
  <user_id>1</user_id>
</betDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.