POST me/games/savescore

save game score by admin

Request Information

Parameters

NameDescriptionAdditional information
inDto
the score data

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "id": 1,
  "type": 0,
  "game_result": 0,
  "period_details": [
    {
      "id": 1,
      "num": 2,
      "home_score": 1,
      "away_score": 1
    },
    {
      "id": 1,
      "num": 2,
      "home_score": 1,
      "away_score": 1
    },
    {
      "id": 1,
      "num": 2,
      "home_score": 1,
      "away_score": 1
    }
  ],
  "home_score": "sample string 2",
  "home_points": "sample string 3",
  "home_fd": 0,
  "away_score": "sample string 4",
  "away_points": "sample string 5",
  "away_fd": 0
}

application/xml, text/xml

Sample:
<GameScoreInDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input">
  <away_fd>None</away_fd>
  <away_points>sample string 5</away_points>
  <away_score>sample string 4</away_score>
  <game_result>NotPlayed</game_result>
  <home_fd>None</home_fd>
  <home_points>sample string 3</home_points>
  <home_score>sample string 2</home_score>
  <id>1</id>
  <period_details xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Output">
    <d2p1:GamePeriodDetailsDto>
      <d2p1:away_score>1</d2p1:away_score>
      <d2p1:home_score>1</d2p1:home_score>
      <d2p1:id>1</d2p1:id>
      <d2p1:num>2</d2p1:num>
    </d2p1:GamePeriodDetailsDto>
    <d2p1:GamePeriodDetailsDto>
      <d2p1:away_score>1</d2p1:away_score>
      <d2p1:home_score>1</d2p1:home_score>
      <d2p1:id>1</d2p1:id>
      <d2p1:num>2</d2p1:num>
    </d2p1:GamePeriodDetailsDto>
    <d2p1:GamePeriodDetailsDto>
      <d2p1:away_score>1</d2p1:away_score>
      <d2p1:home_score>1</d2p1:home_score>
      <d2p1:id>1</d2p1:id>
      <d2p1:num>2</d2p1:num>
    </d2p1:GamePeriodDetailsDto>
  </period_details>
  <type>RegularGame</type>
</GameScoreInDto>

application/x-www-form-urlencoded

Sample:

Sample not available.