exercise

Post a new exercise activity

post/patients/{patient_id}/exercise

Path parameters

patient_idinteger required

Request body

duration_mininteger required

time in minutes

exercise_datestring required

calendar date in format YYYY-MM-DD

exercise_timestring required

time in HH:MM:SS

exercise_type'strength-resistance' | 'aerobic training' | 'balance and stability' | 'flexibility-stretching' | 'mixed cardio/strength' | 'other' required
intensitystring nullable required
notestring nullable

note that can be added to provide additional description Max 1024 char

sourcestring nullable

source of exercise data

source_idstring nullable

id of exercise from source

Example request

{
  "exercise_date": "2019-01-02",
  "exercise_time": "08:00:00",
  "intensity": "low",
  "source": "healthkit",
  "source_id": "35C09300-FAB6-460E-95B5-8EF4EC5663A3"
}

Response

successful operation

duration_mininteger

time in minutes

exercise_datestring

calendar date in format YYYY-MM-DD

exercise_timestring

time in HH:MM:SS

exercise_type'logged by cgm' | 'strength-resistance' | 'aerobic training' | 'balance and stability' | 'flexibility-stretching' | 'mixed cardio/strength' | 'other'
idinteger required
intensitystring nullable
notestring nullable

note that can be added to provide additional description Max 1024 char

sourcestring nullable

source of exercise data

source_idstring nullable

id of exercise from source

Example response

{
  "exercise_date": "2019-01-02",
  "exercise_time": "08:00:00",
  "intensity": "low",
  "source": "healthkit",
  "source_id": "35C09300-FAB6-460E-95B5-8EF4EC5663A3"
}

Changes

No recorded changes to this endpoint across all 15 revisions of this API.