POST api/DynastyForSale/PublishDynastyTeamForSale

Request Information

URI Parameters

None.

Body Parameters

DynastyForSaleAdminInputModel
NameDescriptionTypeAdditional information
SessionID

string

None.

LeagueTypeFilterCodeList

Collection of string

None.

EntryFeeFilterCodeList

Collection of string

None.

VisibilityFilterCodeList

Collection of string

None.

SoldStatusFilterCodeList

Collection of string

None.

SearchOwnerSiteUserID

integer

None.

EntryFee

integer

None.

LeagueID

integer

None.

TeamID

integer

None.

SalePrice

integer

None.

ListedByUserType

integer

None.

DynastyTeamForSaleID

integer

None.

TeamName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SessionID": "sample string 1",
  "LeagueTypeFilterCodeList": [
    "sample string 1",
    "sample string 2"
  ],
  "EntryFeeFilterCodeList": [
    "sample string 1",
    "sample string 2"
  ],
  "VisibilityFilterCodeList": [
    "sample string 1",
    "sample string 2"
  ],
  "SoldStatusFilterCodeList": [
    "sample string 1",
    "sample string 2"
  ],
  "SearchOwnerSiteUserID": 2,
  "EntryFee": 3,
  "LeagueID": 4,
  "TeamID": 5,
  "SalePrice": 6,
  "ListedByUserType": 7,
  "DynastyTeamForSaleID": 8,
  "TeamName": "sample string 9"
}

text/html

Sample:
{"SessionID":"sample string 1","LeagueTypeFilterCodeList":["sample string 1","sample string 2"],"EntryFeeFilterCodeList":["sample string 1","sample string 2"],"VisibilityFilterCodeList":["sample string 1","sample string 2"],"SoldStatusFilterCodeList":["sample string 1","sample string 2"],"SearchOwnerSiteUserID":2,"EntryFee":3,"LeagueID":4,"TeamID":5,"SalePrice":6,"ListedByUserType":7,"DynastyTeamForSaleID":8,"TeamName":"sample string 9"}

application/xml, text/xml

Sample:
<DynastyForSaleAdminInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FantasyCoverage.BusinessObjects">
  <DynastyTeamForSaleID>8</DynastyTeamForSaleID>
  <EntryFee>3</EntryFee>
  <EntryFeeFilterCodeList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </EntryFeeFilterCodeList>
  <LeagueID>4</LeagueID>
  <LeagueTypeFilterCodeList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </LeagueTypeFilterCodeList>
  <ListedByUserType>7</ListedByUserType>
  <SalePrice>6</SalePrice>
  <SearchOwnerSiteUserID>2</SearchOwnerSiteUserID>
  <SessionID>sample string 1</SessionID>
  <SoldStatusFilterCodeList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </SoldStatusFilterCodeList>
  <TeamID>5</TeamID>
  <TeamName>sample string 9</TeamName>
  <VisibilityFilterCodeList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </VisibilityFilterCodeList>
</DynastyForSaleAdminInputModel>

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

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>