Create an exercise session

POST {{baseUrl}}/workouts/6/drills/49/stats/create

It creates and exercise session for a given player.

It supports the following types of sessions:

  • single exercise
  • exercise by sets

The type of exercise session is determined by the way the JSON sent into the `stats_logs` field

Single Exercises

{
"iteration_timing": [0,2500,2600,2300,2400]
}

Exercises by sets

the is_set_flag must be set to true

{
"iteration_timing": [
[0,2500,2600,2300,2400,2300,2400],
[0,2500,2600,2300,2400,2600,2300,2400],
[0,2500,2600,2300,2400,2400],
[0,2500,2600,2300,2400,2500,2600]
]}

This endpoint is only available to Club Administration access as it requires a 3rdPartyApiKey

Request Body

[{"name"=>"stats_logs", "value"=>"{\"iteration_timing\":[[0,1900,2100,2300,2300,2100],[0,1900,2000,2100,2200,2400]]}", "datatype"=>"string"}, {"name"=>"user_id", "value"=>"1", "datatype"=>"number"}, {"name"=>"stats_started", "value"=>"2022-06-22 10:00:00", "datatype"=>"string"}, {"name"=>"stats_ended", "value"=>"2022-06-22 15:09:00", "datatype"=>"string"}, {"name"=>"challenge_id", "value"=>"3", "datatype"=>"number"}, {"name"=>"is_set_flag", "value"=>"true", "datatype"=>"boolean"}]

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring