records

Set the day's activity (steps, energy, workouts); replaces earlier values for that day

put/days/{day}/activity

Request

  • Base URL: https://nutri.coghorizon.com/api/v1
  • URL: https://nutri.coghorizon.com/api/v1/days/{day}/activity
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://nutri.coghorizon.com/oauth/authorize, token URL https://nutri.coghorizon.com/oauth/token, scopes: records:write)

Path parameters

daystring required

Calendar day YYYY-MM-DD

Query parameters

profile_idstring

Profile to use; the default profile when absent. A professional may give the profile of a client from GET /clients (reading: every attached client; recording: diaries they keep)

Request body

stepsinteger
active_kcalnumber

Active energy, kcal (not total)

total_kcalnumber

Total energy for the day, kcal, if the tracker shows it

distance_kmnumber
exercise_minutesinteger
resting_hrinteger

Resting heart rate, bpm

source_appstring

Tracker or app the numbers come from; the connected assistant when absent

confidencenumber

Response

Activity

object required

Changes

No recorded changes to this operation across all 1 revision of this API.