PUT api/v{version}/season

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

SetSeasonMatchesViewModel
NameDescriptionTypeAdditional information
SeasonId

integer

None.

Competitors

Collection of SetCompetitorViewModel

None.

Matches

Collection of SetMatchViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "SeasonId": 1,
  "Competitors": [
    {
      "PlayerId": 1,
      "Identifier": "01f57393-ae53-4d71-8fc2-9d533217e348",
      "CompetitorId": 2,
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "Nationality": "sample string 5",
      "DateOfBirth": "2021-07-29T15:14:40.9756107+02:00",
      "Gender": 0,
      "Email": "sample string 6"
    },
    {
      "PlayerId": 1,
      "Identifier": "01f57393-ae53-4d71-8fc2-9d533217e348",
      "CompetitorId": 2,
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "Nationality": "sample string 5",
      "DateOfBirth": "2021-07-29T15:14:40.9756107+02:00",
      "Gender": 0,
      "Email": "sample string 6"
    }
  ],
  "Matches": [
    {
      "MatchId": 1,
      "CompetitorAId": 2,
      "CompetitorBId": 3,
      "ScoreA": 1,
      "ScoreB": 1,
      "AvgA": 1.1,
      "AvgB": 1.1,
      "Winner": 0,
      "Status": 0
    },
    {
      "MatchId": 1,
      "CompetitorAId": 2,
      "CompetitorBId": 3,
      "ScoreA": 1,
      "ScoreB": 1,
      "AvgA": 1.1,
      "AvgB": 1.1,
      "Winner": 0,
      "Status": 0
    }
  ]
}

application/xml, text/xml

Sample:
<SetSeasonMatchesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Mappers">
  <Competitors>
    <SetCompetitorViewModel>
      <CompetitorId>2</CompetitorId>
      <DateOfBirth>2021-07-29T15:14:40.9756107+02:00</DateOfBirth>
      <Email>sample string 6</Email>
      <FirstName>sample string 3</FirstName>
      <Gender>Male</Gender>
      <Identifier>01f57393-ae53-4d71-8fc2-9d533217e348</Identifier>
      <LastName>sample string 4</LastName>
      <Nationality>sample string 5</Nationality>
      <PlayerId>1</PlayerId>
    </SetCompetitorViewModel>
    <SetCompetitorViewModel>
      <CompetitorId>2</CompetitorId>
      <DateOfBirth>2021-07-29T15:14:40.9756107+02:00</DateOfBirth>
      <Email>sample string 6</Email>
      <FirstName>sample string 3</FirstName>
      <Gender>Male</Gender>
      <Identifier>01f57393-ae53-4d71-8fc2-9d533217e348</Identifier>
      <LastName>sample string 4</LastName>
      <Nationality>sample string 5</Nationality>
      <PlayerId>1</PlayerId>
    </SetCompetitorViewModel>
  </Competitors>
  <Matches>
    <SetMatchViewModel>
      <AvgA>1.1</AvgA>
      <AvgB>1.1</AvgB>
      <CompetitorAId>2</CompetitorAId>
      <CompetitorBId>3</CompetitorBId>
      <MatchId>1</MatchId>
      <ScoreA>1</ScoreA>
      <ScoreB>1</ScoreB>
      <Status>Played</Status>
      <Winner>Unknown</Winner>
    </SetMatchViewModel>
    <SetMatchViewModel>
      <AvgA>1.1</AvgA>
      <AvgB>1.1</AvgB>
      <CompetitorAId>2</CompetitorAId>
      <CompetitorBId>3</CompetitorBId>
      <MatchId>1</MatchId>
      <ScoreA>1</ScoreA>
      <ScoreB>1</ScoreB>
      <Status>Played</Status>
      <Winner>Unknown</Winner>
    </SetMatchViewModel>
  </Matches>
  <SeasonId>1</SeasonId>
</SetSeasonMatchesViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SeasonMatchesStatusResponse
NameDescriptionTypeAdditional information
Ok

boolean

None.

Messages

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Ok": true,
  "Messages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<SeasonMatchesStatusResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Messages>
  <Ok>true</Ok>
</SeasonMatchesStatusResponse>