records

Set the night's sleep (day = wake-up date); replaces earlier values

put/days/{day}/sleep

Request

  • Base URL: https://nutri.coghorizon.com/api/v1
  • URL: https://nutri.coghorizon.com/api/v1/days/{day}/sleep
  • 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

bedtimestring

HH:MM, 24 h

wake_timestring

HH:MM, 24 h

in_bed_minutesinteger
asleep_minutesinteger
deep_minutesinteger
rem_minutesinteger
light_minutesinteger
awake_minutesinteger
scoreinteger

Sleep score as the tracker shows it

efficiency_pctnumber
avg_hrinteger
hrv_msnumber
source_appstring
confidencenumber

Response

Sleep

object required

Changes

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