POST api/DraftRoom/BeginDraft

Request Information

URI Parameters

None.

Body Parameters

DraftRoomInputModel
NameDescriptionTypeAdditional information
SessionID

string

None.

LTUID

string

None.

LeagueID

integer

None.

TeamID

integer

None.

LastDraftRoomEventID

integer

None.

StartPick

integer

None.

EndPick

integer

None.

AutoRandomizeDraftOrderBefore

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "SessionID": "sample string 1",
  "LTUID": "sample string 2",
  "LeagueID": 3,
  "TeamID": 4,
  "LastDraftRoomEventID": 5,
  "StartPick": 6,
  "EndPick": 7,
  "AutoRandomizeDraftOrderBefore": true
}

text/html

Sample:
{"SessionID":"sample string 1","LTUID":"sample string 2","LeagueID":3,"TeamID":4,"LastDraftRoomEventID":5,"StartPick":6,"EndPick":7,"AutoRandomizeDraftOrderBefore":true}

application/xml, text/xml

Sample:
<DraftRoomInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FantasyCoverage.BusinessObjects">
  <AutoRandomizeDraftOrderBefore>true</AutoRandomizeDraftOrderBefore>
  <EndPick>7</EndPick>
  <LTUID>sample string 2</LTUID>
  <LastDraftRoomEventID>5</LastDraftRoomEventID>
  <LeagueID>3</LeagueID>
  <SessionID>sample string 1</SessionID>
  <StartPick>6</StartPick>
  <TeamID>4</TeamID>
</DraftRoomInputModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DraftRoomInputModel'.

Response Information

Resource Description

ResponseModel
NameDescriptionTypeAdditional information
Message

string

None.

Status

boolean

None.

Data

Object

None.

ResultCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Status": true,
  "Data": {},
  "ResultCode": 4
}

text/html

Sample:
{"Message":"sample string 1","Status":true,"Data":{},"ResultCode":4}

application/xml, text/xml

Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FantasyCoverage.BusinessObjects">
  <Data />
  <Message>sample string 1</Message>
  <ResultCode>4</ResultCode>
  <Status>true</Status>
</ResponseModel>