PUT api/v{version}/season/bracket

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

SeasonBracketViewModel
NameDescriptionTypeAdditional information
SeasonId

integer

None.

Players

The players of this season.

Collection of SeasonBracketPlayer

None.

Bracket

The bracket with match results

BracketViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "SeasonId": 1,
  "Players": [
    {
      "FirstName": "sample string 1",
      "LastName": "sample string 2",
      "Nationality": "sample string 3",
      "Email": "sample string 4",
      "DateOfBirth": "2021-11-28T13:08:43.8271053+01:00",
      "Gender": "sample string 5",
      "MemberId": "sample string 6",
      "Key": 1,
      "Reference": "sample string 7"
    },
    {
      "FirstName": "sample string 1",
      "LastName": "sample string 2",
      "Nationality": "sample string 3",
      "Email": "sample string 4",
      "DateOfBirth": "2021-11-28T13:08:43.8271053+01:00",
      "Gender": "sample string 5",
      "MemberId": "sample string 6",
      "Key": 1,
      "Reference": "sample string 7"
    }
  ],
  "Bracket": {
    "Rounds": [
      {
        "Round": 1,
        "Matches": [
          {
            "A": {
              "Reference": "sample string 1",
              "Score": 1,
              "Average": 1.1
            },
            "B": {
              "Reference": "sample string 1",
              "Score": 1,
              "Average": 1.1
            },
            "Winner": "sample string 1",
            "Status": "sample string 2"
          },
          {
            "A": {
              "Reference": "sample string 1",
              "Score": 1,
              "Average": 1.1
            },
            "B": {
              "Reference": "sample string 1",
              "Score": 1,
              "Average": 1.1
            },
            "Winner": "sample string 1",
            "Status": "sample string 2"
          }
        ]
      },
      {
        "Round": 1,
        "Matches": [
          {
            "A": {
              "Reference": "sample string 1",
              "Score": 1,
              "Average": 1.1
            },
            "B": {
              "Reference": "sample string 1",
              "Score": 1,
              "Average": 1.1
            },
            "Winner": "sample string 1",
            "Status": "sample string 2"
          },
          {
            "A": {
              "Reference": "sample string 1",
              "Score": 1,
              "Average": 1.1
            },
            "B": {
              "Reference": "sample string 1",
              "Score": 1,
              "Average": 1.1
            },
            "Winner": "sample string 1",
            "Status": "sample string 2"
          }
        ]
      }
    ]
  }
}

application/xml, text/xml

Sample:
<SeasonBracketViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Bracket>
    <Rounds>
      <BracketRoundViewModel>
        <Matches>
          <BracketMatchViewModel>
            <A>
              <Average>1.1</Average>
              <Reference>sample string 1</Reference>
              <Score>1</Score>
            </A>
            <B>
              <Average>1.1</Average>
              <Reference>sample string 1</Reference>
              <Score>1</Score>
            </B>
            <Status>sample string 2</Status>
            <Winner>sample string 1</Winner>
          </BracketMatchViewModel>
          <BracketMatchViewModel>
            <A>
              <Average>1.1</Average>
              <Reference>sample string 1</Reference>
              <Score>1</Score>
            </A>
            <B>
              <Average>1.1</Average>
              <Reference>sample string 1</Reference>
              <Score>1</Score>
            </B>
            <Status>sample string 2</Status>
            <Winner>sample string 1</Winner>
          </BracketMatchViewModel>
        </Matches>
        <Round>1</Round>
      </BracketRoundViewModel>
      <BracketRoundViewModel>
        <Matches>
          <BracketMatchViewModel>
            <A>
              <Average>1.1</Average>
              <Reference>sample string 1</Reference>
              <Score>1</Score>
            </A>
            <B>
              <Average>1.1</Average>
              <Reference>sample string 1</Reference>
              <Score>1</Score>
            </B>
            <Status>sample string 2</Status>
            <Winner>sample string 1</Winner>
          </BracketMatchViewModel>
          <BracketMatchViewModel>
            <A>
              <Average>1.1</Average>
              <Reference>sample string 1</Reference>
              <Score>1</Score>
            </A>
            <B>
              <Average>1.1</Average>
              <Reference>sample string 1</Reference>
              <Score>1</Score>
            </B>
            <Status>sample string 2</Status>
            <Winner>sample string 1</Winner>
          </BracketMatchViewModel>
        </Matches>
        <Round>1</Round>
      </BracketRoundViewModel>
    </Rounds>
  </Bracket>
  <Players>
    <SeasonBracketPlayer>
      <DateOfBirth>2021-11-28T13:08:43.8271053+01:00</DateOfBirth>
      <Email>sample string 4</Email>
      <FirstName>sample string 1</FirstName>
      <Gender>sample string 5</Gender>
      <Key>1</Key>
      <LastName>sample string 2</LastName>
      <MemberId>sample string 6</MemberId>
      <Nationality>sample string 3</Nationality>
      <Reference>sample string 7</Reference>
    </SeasonBracketPlayer>
    <SeasonBracketPlayer>
      <DateOfBirth>2021-11-28T13:08:43.8271053+01:00</DateOfBirth>
      <Email>sample string 4</Email>
      <FirstName>sample string 1</FirstName>
      <Gender>sample string 5</Gender>
      <Key>1</Key>
      <LastName>sample string 2</LastName>
      <MemberId>sample string 6</MemberId>
      <Nationality>sample string 3</Nationality>
      <Reference>sample string 7</Reference>
    </SeasonBracketPlayer>
  </Players>
  <SeasonId>1</SeasonId>
</SeasonBracketViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SeasonBracketResponse
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:
<SeasonBracketResponse 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>
</SeasonBracketResponse>