POST api/Team/CreateTrade2021

Request Information

URI Parameters

None.

Body Parameters

NewTradeInputModel
NameDescriptionTypeAdditional information
SessionID

string

None.

LTUID

string

None.

CreateOnly

boolean

None.

TradeOfferID

integer

None.

LeagueID

integer

None.

InitiatingTeamID

integer

None.

OtherTeamID

integer

None.

TradeMessage

string

None.

PlayersOfferedByInitiatingTeam

string

None.

PlayersRequestedByInitiatingTeam

string

None.

PlayersDroppedByInitiatingTeam

string

None.

DraftPicksOfferedByInitiatingTeam

string

None.

DraftPicksRequestedByInitiatingTeam

string

None.

FAABDollarsOffered

integer

None.

FAABDollarsRequested

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SessionID": "sample string 1",
  "LTUID": "sample string 2",
  "CreateOnly": true,
  "TradeOfferID": 4,
  "LeagueID": 5,
  "InitiatingTeamID": 6,
  "OtherTeamID": 7,
  "TradeMessage": "sample string 8",
  "PlayersOfferedByInitiatingTeam": "sample string 9",
  "PlayersRequestedByInitiatingTeam": "sample string 10",
  "PlayersDroppedByInitiatingTeam": "sample string 11",
  "DraftPicksOfferedByInitiatingTeam": "sample string 12",
  "DraftPicksRequestedByInitiatingTeam": "sample string 13",
  "FAABDollarsOffered": 14,
  "FAABDollarsRequested": 15
}

text/html

Sample:
{"SessionID":"sample string 1","LTUID":"sample string 2","CreateOnly":true,"TradeOfferID":4,"LeagueID":5,"InitiatingTeamID":6,"OtherTeamID":7,"TradeMessage":"sample string 8","PlayersOfferedByInitiatingTeam":"sample string 9","PlayersRequestedByInitiatingTeam":"sample string 10","PlayersDroppedByInitiatingTeam":"sample string 11","DraftPicksOfferedByInitiatingTeam":"sample string 12","DraftPicksRequestedByInitiatingTeam":"sample string 13","FAABDollarsOffered":14,"FAABDollarsRequested":15}

application/xml, text/xml

Sample:
<NewTradeInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FantasyCoverage.BusinessObjects">
  <CreateOnly>true</CreateOnly>
  <DraftPicksOfferedByInitiatingTeam>sample string 12</DraftPicksOfferedByInitiatingTeam>
  <DraftPicksRequestedByInitiatingTeam>sample string 13</DraftPicksRequestedByInitiatingTeam>
  <FAABDollarsOffered>14</FAABDollarsOffered>
  <FAABDollarsRequested>15</FAABDollarsRequested>
  <InitiatingTeamID>6</InitiatingTeamID>
  <LTUID>sample string 2</LTUID>
  <LeagueID>5</LeagueID>
  <OtherTeamID>7</OtherTeamID>
  <PlayersDroppedByInitiatingTeam>sample string 11</PlayersDroppedByInitiatingTeam>
  <PlayersOfferedByInitiatingTeam>sample string 9</PlayersOfferedByInitiatingTeam>
  <PlayersRequestedByInitiatingTeam>sample string 10</PlayersRequestedByInitiatingTeam>
  <SessionID>sample string 1</SessionID>
  <TradeMessage>sample string 8</TradeMessage>
  <TradeOfferID>4</TradeOfferID>
</NewTradeInputModel>

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 'NewTradeInputModel'.

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>