POST api/Player/WelBeing/CreatePlayerHealth

Request Information

URI Parameters

None.

Body Parameters

PlayerHealth
NameDescriptionTypeAdditional information
UpdateStart

date

None.

UpdateEnd

date

None.

PlayerBloodOxygens

Collection of PlayerBloodOxygenHealth

None.

PlayerBloodPressures

Collection of PlayerBloodPressureHealth

None.

PlayerCalories

Collection of PlayerCaloriesHealth

None.

PlayerHeartRates

Collection of PlayerHeartRateHealth

None.

PlayerSleeps

Collection of PlayerSleepHealth

None.

PlayerSteps

Collection of PlayerStepsHealth

None.

PlayerWeights

Collection of PlayerWeightHealth

None.

Request Formats

application/json, text/json

Sample:
{
  "UpdateStart": "2026-09-29T15:13:34.4283071+01:00",
  "UpdateEnd": "2026-09-29T15:13:34.4283071+01:00",
  "PlayerBloodOxygens": [
    {
      "Date": "2026-09-29T15:13:34.4283071+01:00",
      "BloodOxygenPercentage": 1.0
    },
    {
      "Date": "2026-09-29T15:13:34.4283071+01:00",
      "BloodOxygenPercentage": 1.0
    }
  ],
  "PlayerBloodPressures": [
    {
      "Date": "2026-09-29T15:13:34.4283071+01:00",
      "BloodPressureDiastolic": 1.0,
      "BloodPressureSystolic": 1.0
    },
    {
      "Date": "2026-09-29T15:13:34.4283071+01:00",
      "BloodPressureDiastolic": 1.0,
      "BloodPressureSystolic": 1.0
    }
  ],
  "PlayerCalories": [
    {
      "StartDate": "2026-09-29T15:13:34.4283071+01:00",
      "EndDate": "2026-09-29T15:13:34.4283071+01:00",
      "CaloriesExpended": 1.0
    },
    {
      "StartDate": "2026-09-29T15:13:34.4283071+01:00",
      "EndDate": "2026-09-29T15:13:34.4283071+01:00",
      "CaloriesExpended": 1.0
    }
  ],
  "PlayerHeartRates": [
    {
      "Date": "2026-09-29T15:13:34.4283071+01:00",
      "HeartRateBpm": 1.0
    },
    {
      "Date": "2026-09-29T15:13:34.4283071+01:00",
      "HeartRateBpm": 1.0
    }
  ],
  "PlayerSleeps": [
    {
      "StartDate": "2026-09-29T15:13:34.4283071+01:00",
      "EndDate": "2026-09-29T15:13:34.4283071+01:00",
      "SleepTypeId": 3
    },
    {
      "StartDate": "2026-09-29T15:13:34.4283071+01:00",
      "EndDate": "2026-09-29T15:13:34.4283071+01:00",
      "SleepTypeId": 3
    }
  ],
  "PlayerSteps": [
    {
      "StartDate": "2026-09-29T15:13:34.4283071+01:00",
      "EndDate": "2026-09-29T15:13:34.4283071+01:00",
      "Steps": 1.0
    },
    {
      "StartDate": "2026-09-29T15:13:34.4283071+01:00",
      "EndDate": "2026-09-29T15:13:34.4283071+01:00",
      "Steps": 1.0
    }
  ],
  "PlayerWeights": [
    {
      "Date": "2026-09-29T15:13:34.4283071+01:00",
      "Weight": 1.0
    },
    {
      "Date": "2026-09-29T15:13:34.4283071+01:00",
      "Weight": 1.0
    }
  ]
}

application/xml, text/xml

Sample:
<PlayerHealth xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FootballISM.Api.Contracts.Player.Health">
  <PlayerBloodOxygens>
    <PlayerBloodOxygenHealth>
      <BloodOxygenPercentage>1</BloodOxygenPercentage>
      <Date>2026-09-29T15:13:34.4283071+01:00</Date>
    </PlayerBloodOxygenHealth>
    <PlayerBloodOxygenHealth>
      <BloodOxygenPercentage>1</BloodOxygenPercentage>
      <Date>2026-09-29T15:13:34.4283071+01:00</Date>
    </PlayerBloodOxygenHealth>
  </PlayerBloodOxygens>
  <PlayerBloodPressures>
    <PlayerBloodPressureHealth>
      <BloodPressureDiastolic>1</BloodPressureDiastolic>
      <BloodPressureSystolic>1</BloodPressureSystolic>
      <Date>2026-09-29T15:13:34.4283071+01:00</Date>
    </PlayerBloodPressureHealth>
    <PlayerBloodPressureHealth>
      <BloodPressureDiastolic>1</BloodPressureDiastolic>
      <BloodPressureSystolic>1</BloodPressureSystolic>
      <Date>2026-09-29T15:13:34.4283071+01:00</Date>
    </PlayerBloodPressureHealth>
  </PlayerBloodPressures>
  <PlayerCalories>
    <PlayerCaloriesHealth>
      <CaloriesExpended>1</CaloriesExpended>
      <EndDate>2026-09-29T15:13:34.4283071+01:00</EndDate>
      <StartDate>2026-09-29T15:13:34.4283071+01:00</StartDate>
    </PlayerCaloriesHealth>
    <PlayerCaloriesHealth>
      <CaloriesExpended>1</CaloriesExpended>
      <EndDate>2026-09-29T15:13:34.4283071+01:00</EndDate>
      <StartDate>2026-09-29T15:13:34.4283071+01:00</StartDate>
    </PlayerCaloriesHealth>
  </PlayerCalories>
  <PlayerHeartRates>
    <PlayerHeartRateHealth>
      <Date>2026-09-29T15:13:34.4283071+01:00</Date>
      <HeartRateBpm>1</HeartRateBpm>
    </PlayerHeartRateHealth>
    <PlayerHeartRateHealth>
      <Date>2026-09-29T15:13:34.4283071+01:00</Date>
      <HeartRateBpm>1</HeartRateBpm>
    </PlayerHeartRateHealth>
  </PlayerHeartRates>
  <PlayerSleeps>
    <PlayerSleepHealth>
      <EndDate>2026-09-29T15:13:34.4283071+01:00</EndDate>
      <SleepTypeId>3</SleepTypeId>
      <StartDate>2026-09-29T15:13:34.4283071+01:00</StartDate>
    </PlayerSleepHealth>
    <PlayerSleepHealth>
      <EndDate>2026-09-29T15:13:34.4283071+01:00</EndDate>
      <SleepTypeId>3</SleepTypeId>
      <StartDate>2026-09-29T15:13:34.4283071+01:00</StartDate>
    </PlayerSleepHealth>
  </PlayerSleeps>
  <PlayerSteps>
    <PlayerStepsHealth>
      <EndDate>2026-09-29T15:13:34.4283071+01:00</EndDate>
      <StartDate>2026-09-29T15:13:34.4283071+01:00</StartDate>
      <Steps>1</Steps>
    </PlayerStepsHealth>
    <PlayerStepsHealth>
      <EndDate>2026-09-29T15:13:34.4283071+01:00</EndDate>
      <StartDate>2026-09-29T15:13:34.4283071+01:00</StartDate>
      <Steps>1</Steps>
    </PlayerStepsHealth>
  </PlayerSteps>
  <PlayerWeights>
    <PlayerWeightHealth>
      <Date>2026-09-29T15:13:34.4283071+01:00</Date>
      <Weight>1</Weight>
    </PlayerWeightHealth>
    <PlayerWeightHealth>
      <Date>2026-09-29T15:13:34.4283071+01:00</Date>
      <Weight>1</Weight>
    </PlayerWeightHealth>
  </PlayerWeights>
  <UpdateEnd>2026-09-29T15:13:34.4283071+01:00</UpdateEnd>
  <UpdateStart>2026-09-29T15:13:34.4283071+01:00</UpdateStart>
</PlayerHealth>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultOfBoolean
NameDescriptionTypeAdditional information
Result

boolean

None.

ErrorCode

ServiceErrorCode

None.

ErrorMessage

Collection of string

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": true,
  "ErrorCode": 0,
  "ErrorMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "Success": true
}

application/xml, text/xml

Sample:
<ServiceResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FootballISM.Api.Contracts.Results">
  <ErrorCode>None</ErrorCode>
  <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMessage>
  <Success>true</Success>
  <Result>true</Result>
</ServiceResultOfboolean>