POST v2/me/networks/{networkid}/games/savescore

Save game score by admin
For newly add overtime period, please set the id of the period_detail to -1
And for deleted overtime period, put the id to the deleted_periods array

Request Information

Parameters

NameDescriptionAdditional information
inDto
the score data

Define this parameter in the request body.

networkid
network id

Define this parameter in the request URI.

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,
      "type": 0
    },
    {
      "id": 1,
      "num": 2,
      "home_score": 1,
      "away_score": 1,
      "type": 0
    },
    {
      "id": 1,
      "num": 2,
      "home_score": 1,
      "away_score": 1,
      "type": 0
    }
  ],
  "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,
  "deleted_periods": [
    1,
    2,
    3
  ]
}

application/xml, text/xml

Sample:
<GameScoreInDtoV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">
  <away_fd>None</away_fd>
  <away_points>sample string 5</away_points>
  <away_score>sample string 4</away_score>
  <deleted_periods xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
    <d2p1:int>3</d2p1:int>
  </deleted_periods>
  <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.V2">
    <d2p1:GamePeriodDetailsDtoV2>
      <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:type>NormalRace</d2p1:type>
    </d2p1:GamePeriodDetailsDtoV2>
    <d2p1:GamePeriodDetailsDtoV2>
      <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:type>NormalRace</d2p1:type>
    </d2p1:GamePeriodDetailsDtoV2>
    <d2p1:GamePeriodDetailsDtoV2>
      <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:type>NormalRace</d2p1:type>
    </d2p1:GamePeriodDetailsDtoV2>
  </period_details>
  <type>RegularGame</type>
</GameScoreInDtoV2>

application/x-www-form-urlencoded

Sample:

Sample not available.