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

update all players sport stats for a game at once
NOTE: we only allow you update the player stats for one same game in this end point

Request Information

Parameters

NameDescriptionAdditional information
inDto

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:
[
  {
    "game_id": 1,
    "game_type": 0,
    "member_id": "sample string 2",
    "team_id": "sample string 3",
    "stats": [
      {
        "stat_id": 1,
        "stat_value": 1.1
      },
      {
        "stat_id": 1,
        "stat_value": 1.1
      },
      {
        "stat_id": 1,
        "stat_value": 1.1
      }
    ]
  },
  {
    "game_id": 1,
    "game_type": 0,
    "member_id": "sample string 2",
    "team_id": "sample string 3",
    "stats": [
      {
        "stat_id": 1,
        "stat_value": 1.1
      },
      {
        "stat_id": 1,
        "stat_value": 1.1
      },
      {
        "stat_id": 1,
        "stat_value": 1.1
      }
    ]
  },
  {
    "game_id": 1,
    "game_type": 0,
    "member_id": "sample string 2",
    "team_id": "sample string 3",
    "stats": [
      {
        "stat_id": 1,
        "stat_value": 1.1
      },
      {
        "stat_id": 1,
        "stat_value": 1.1
      },
      {
        "stat_id": 1,
        "stat_value": 1.1
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfGamePlayerSportStatsInDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">
  <GamePlayerSportStatsInDto>
    <game_id>1</game_id>
    <game_type>RegularGame</game_type>
    <member_id>sample string 2</member_id>
    <stats>
      <SportStatsInDto>
        <stat_id>1</stat_id>
        <stat_value>1.1</stat_value>
      </SportStatsInDto>
      <SportStatsInDto>
        <stat_id>1</stat_id>
        <stat_value>1.1</stat_value>
      </SportStatsInDto>
      <SportStatsInDto>
        <stat_id>1</stat_id>
        <stat_value>1.1</stat_value>
      </SportStatsInDto>
    </stats>
    <team_id>sample string 3</team_id>
  </GamePlayerSportStatsInDto>
  <GamePlayerSportStatsInDto>
    <game_id>1</game_id>
    <game_type>RegularGame</game_type>
    <member_id>sample string 2</member_id>
    <stats>
      <SportStatsInDto>
        <stat_id>1</stat_id>
        <stat_value>1.1</stat_value>
      </SportStatsInDto>
      <SportStatsInDto>
        <stat_id>1</stat_id>
        <stat_value>1.1</stat_value>
      </SportStatsInDto>
      <SportStatsInDto>
        <stat_id>1</stat_id>
        <stat_value>1.1</stat_value>
      </SportStatsInDto>
    </stats>
    <team_id>sample string 3</team_id>
  </GamePlayerSportStatsInDto>
  <GamePlayerSportStatsInDto>
    <game_id>1</game_id>
    <game_type>RegularGame</game_type>
    <member_id>sample string 2</member_id>
    <stats>
      <SportStatsInDto>
        <stat_id>1</stat_id>
        <stat_value>1.1</stat_value>
      </SportStatsInDto>
      <SportStatsInDto>
        <stat_id>1</stat_id>
        <stat_value>1.1</stat_value>
      </SportStatsInDto>
      <SportStatsInDto>
        <stat_id>1</stat_id>
        <stat_value>1.1</stat_value>
      </SportStatsInDto>
    </stats>
    <team_id>sample string 3</team_id>
  </GamePlayerSportStatsInDto>
</ArrayOfGamePlayerSportStatsInDto>

application/x-www-form-urlencoded

Sample:

Sample not available.