PUT api/v{version}/player

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

Collection of PlayerSaveViewModel
NameDescriptionTypeAdditional information
PlayerId

Id of the player. This id is unique, but may be changes between version updates of the application.

integer

None.

CompetitorId

Remote Id

integer

None.

Key

The unique key of the player. While the id of the player is also unique, this key will never change due to database reconfigurations.

integer

None.

FullName

The name of the player.

string

None.

FirstName

string

None.

LastName

string

None.

Nationality

The nationality of the player.

string

None.

Email

string

None.

DateOfBirth

date

None.

Gender

string

None.

CountryCode

The nationality of the player represented by the country code. For example NL for the Netherlands.

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "PlayerId": 1,
    "CompetitorId": 2,
    "Key": 3,
    "FullName": "sample string 4",
    "FirstName": "sample string 5",
    "LastName": "sample string 6",
    "Nationality": "sample string 7",
    "Email": "sample string 8",
    "DateOfBirth": "2021-04-16T19:02:41.3566573+02:00",
    "Gender": "sample string 9",
    "CountryCode": "sample string 10"
  },
  {
    "PlayerId": 1,
    "CompetitorId": 2,
    "Key": 3,
    "FullName": "sample string 4",
    "FirstName": "sample string 5",
    "LastName": "sample string 6",
    "Nationality": "sample string 7",
    "Email": "sample string 8",
    "DateOfBirth": "2021-04-16T19:02:41.3566573+02:00",
    "Gender": "sample string 9",
    "CountryCode": "sample string 10"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPlayerSaveViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <PlayerSaveViewModel>
    <CompetitorId>2</CompetitorId>
    <CountryCode>sample string 10</CountryCode>
    <DateOfBirth>2021-04-16T19:02:41.3566573+02:00</DateOfBirth>
    <Email>sample string 8</Email>
    <FirstName>sample string 5</FirstName>
    <FullName>sample string 4</FullName>
    <Gender>sample string 9</Gender>
    <Key>3</Key>
    <LastName>sample string 6</LastName>
    <Nationality>sample string 7</Nationality>
    <PlayerId>1</PlayerId>
  </PlayerSaveViewModel>
  <PlayerSaveViewModel>
    <CompetitorId>2</CompetitorId>
    <CountryCode>sample string 10</CountryCode>
    <DateOfBirth>2021-04-16T19:02:41.3566573+02:00</DateOfBirth>
    <Email>sample string 8</Email>
    <FirstName>sample string 5</FirstName>
    <FullName>sample string 4</FullName>
    <Gender>sample string 9</Gender>
    <Key>3</Key>
    <LastName>sample string 6</LastName>
    <Nationality>sample string 7</Nationality>
    <PlayerId>1</PlayerId>
  </PlayerSaveViewModel>
</ArrayOfPlayerSaveViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SavePlayerStatusResponse
NameDescriptionTypeAdditional information
Ok

boolean

None.

PlayerIdMap

Map old id to new id

Dictionary of integer [key] and integer [value]

None.

Messages

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Ok": true,
  "PlayerIdMap": {
    "1": 2,
    "3": 4
  },
  "Messages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<SavePlayerStatusResponse 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>
  <PlayerIdMap xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfintint>
      <d2p1:Key>1</d2p1:Key>
      <d2p1:Value>2</d2p1:Value>
    </d2p1:KeyValueOfintint>
    <d2p1:KeyValueOfintint>
      <d2p1:Key>3</d2p1:Key>
      <d2p1:Value>4</d2p1:Value>
    </d2p1:KeyValueOfintint>
  </PlayerIdMap>
</SavePlayerStatusResponse>