PUT api/v{version}/season

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

SeasonMatchesViewModel
NameDescriptionTypeAdditional information
SeasonId

integer

None.

Matches

Collection of BasicMatch

None.

Request Formats

application/json, text/json

Sample:
{
  "SeasonId": 1,
  "Matches": [
    {
      "MatchId": 1,
      "A": {
        "PlayerId": 1,
        "Score": 1,
        "Nationality": "sample string 2",
        "Url": "sample string 3",
        "FirstName": "sample string 4",
        "MiddleName": "sample string 5",
        "LastName": "sample string 6",
        "MatchName": "sample string 7"
      },
      "B": {
        "PlayerId": 1,
        "Score": 1,
        "Nationality": "sample string 2",
        "Url": "sample string 3",
        "FirstName": "sample string 4",
        "MiddleName": "sample string 5",
        "LastName": "sample string 6",
        "MatchName": "sample string 7"
      },
      "OfficialStartDate": "2020-10-26T22:43:51.2710813+01:00",
      "MatchContext": {
        "Organisation": "sample string 1",
        "CompetitionId": 2,
        "Competition": "sample string 3",
        "SeasonId": 4,
        "Season": "sample string 5",
        "Round": "sample string 6",
        "Poule": "sample string 7"
      }
    },
    {
      "MatchId": 1,
      "A": {
        "PlayerId": 1,
        "Score": 1,
        "Nationality": "sample string 2",
        "Url": "sample string 3",
        "FirstName": "sample string 4",
        "MiddleName": "sample string 5",
        "LastName": "sample string 6",
        "MatchName": "sample string 7"
      },
      "B": {
        "PlayerId": 1,
        "Score": 1,
        "Nationality": "sample string 2",
        "Url": "sample string 3",
        "FirstName": "sample string 4",
        "MiddleName": "sample string 5",
        "LastName": "sample string 6",
        "MatchName": "sample string 7"
      },
      "OfficialStartDate": "2020-10-26T22:43:51.2710813+01:00",
      "MatchContext": {
        "Organisation": "sample string 1",
        "CompetitionId": 2,
        "Competition": "sample string 3",
        "SeasonId": 4,
        "Season": "sample string 5",
        "Round": "sample string 6",
        "Poule": "sample string 7"
      }
    }
  ]
}

application/xml, text/xml

Sample:
<SeasonMatchesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Mappers">
  <Matches xmlns:d2p1="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
    <d2p1:BasicMatch>
      <d2p1:A>
        <d2p1:FirstName>sample string 4</d2p1:FirstName>
        <d2p1:LastName>sample string 6</d2p1:LastName>
        <d2p1:MatchName>sample string 7</d2p1:MatchName>
        <d2p1:MiddleName>sample string 5</d2p1:MiddleName>
        <d2p1:Nationality>sample string 2</d2p1:Nationality>
        <d2p1:PlayerId>1</d2p1:PlayerId>
        <d2p1:Score>1</d2p1:Score>
        <d2p1:Url>sample string 3</d2p1:Url>
      </d2p1:A>
      <d2p1:B>
        <d2p1:FirstName>sample string 4</d2p1:FirstName>
        <d2p1:LastName>sample string 6</d2p1:LastName>
        <d2p1:MatchName>sample string 7</d2p1:MatchName>
        <d2p1:MiddleName>sample string 5</d2p1:MiddleName>
        <d2p1:Nationality>sample string 2</d2p1:Nationality>
        <d2p1:PlayerId>1</d2p1:PlayerId>
        <d2p1:Score>1</d2p1:Score>
        <d2p1:Url>sample string 3</d2p1:Url>
      </d2p1:B>
      <d2p1:MatchContext>
        <d2p1:Competition>sample string 3</d2p1:Competition>
        <d2p1:CompetitionId>2</d2p1:CompetitionId>
        <d2p1:Organisation>sample string 1</d2p1:Organisation>
        <d2p1:Poule>sample string 7</d2p1:Poule>
        <d2p1:Round>sample string 6</d2p1:Round>
        <d2p1:Season>sample string 5</d2p1:Season>
        <d2p1:SeasonId>4</d2p1:SeasonId>
      </d2p1:MatchContext>
      <d2p1:MatchId>1</d2p1:MatchId>
      <d2p1:OfficialStartDate>2020-10-26T22:43:51.2710813+01:00</d2p1:OfficialStartDate>
    </d2p1:BasicMatch>
    <d2p1:BasicMatch>
      <d2p1:A>
        <d2p1:FirstName>sample string 4</d2p1:FirstName>
        <d2p1:LastName>sample string 6</d2p1:LastName>
        <d2p1:MatchName>sample string 7</d2p1:MatchName>
        <d2p1:MiddleName>sample string 5</d2p1:MiddleName>
        <d2p1:Nationality>sample string 2</d2p1:Nationality>
        <d2p1:PlayerId>1</d2p1:PlayerId>
        <d2p1:Score>1</d2p1:Score>
        <d2p1:Url>sample string 3</d2p1:Url>
      </d2p1:A>
      <d2p1:B>
        <d2p1:FirstName>sample string 4</d2p1:FirstName>
        <d2p1:LastName>sample string 6</d2p1:LastName>
        <d2p1:MatchName>sample string 7</d2p1:MatchName>
        <d2p1:MiddleName>sample string 5</d2p1:MiddleName>
        <d2p1:Nationality>sample string 2</d2p1:Nationality>
        <d2p1:PlayerId>1</d2p1:PlayerId>
        <d2p1:Score>1</d2p1:Score>
        <d2p1:Url>sample string 3</d2p1:Url>
      </d2p1:B>
      <d2p1:MatchContext>
        <d2p1:Competition>sample string 3</d2p1:Competition>
        <d2p1:CompetitionId>2</d2p1:CompetitionId>
        <d2p1:Organisation>sample string 1</d2p1:Organisation>
        <d2p1:Poule>sample string 7</d2p1:Poule>
        <d2p1:Round>sample string 6</d2p1:Round>
        <d2p1:Season>sample string 5</d2p1:Season>
        <d2p1:SeasonId>4</d2p1:SeasonId>
      </d2p1:MatchContext>
      <d2p1:MatchId>1</d2p1:MatchId>
      <d2p1:OfficialStartDate>2020-10-26T22:43:51.2710813+01:00</d2p1:OfficialStartDate>
    </d2p1:BasicMatch>
  </Matches>
  <SeasonId>1</SeasonId>
</SeasonMatchesViewModel>

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>