Data Logs

Upload data logs (Profile Authorization)

post/api/v1/profile/data/log

Request

  • Base URL
    https://api.sahha.ai (the document declares no server; this is the origin it was published from)
  • Auth
    API key in header Authorization

Request body

idstring uuid nullable
parentIdstring uuid nullable
logTypestring
dataTypestring
valuenumber double

The amount of times the data type occurred within the time period.

unitstring

The unit of measure for the value.

sourcestring

Source of this data log. e.g. 'Iphone X', 'Walking Buddy'

sourceIdinteger

Unique Source Identifier of this data log for the profile.

recordingMethodstring

The method used to record the log: RECORDING_METHOD_ACTIVELY_RECORDED (For actively recorded data by the user), RECORDING_METHOD_AUTOMATICALLY_RECORDED (For passively recorded data by the app), RECORDING_METHOD_MANUAL_ENTRY (For manually entered data by the user), RECORDING_METHOD_UNKNOWN (Unknown recording method).

deviceIdstring uuid nullable

The identifier for the device which recorded the log.

deviceTypestring

The device which recorded the log.

periodicitystring

If the log is an aggregate this determins it's periodicity - daily, hourly

aggregationstring

If the log is an aggregate this determines it's aggregation type - sum, avg, max, min

startDateTimestring date-time

Denotes the start date and time for the log period. In ISO 8601 format with a timezone offset.

endDateTimestring date-time

Denotes the end date and time for the log period. In ISO 8601 format with a timezone offset.

additionalPropertiesobject

Example request

[
  {
    "unit": "55",
    "source": "Iphone X",
    "recordingMethod": "RECORDING_METHOD_UNKNOWN",
    "deviceId": "C85330AD-C691-453C-8CB6-353AB75FD611",
    "deviceType": "iPhone13,2",
    "periodicity": "daily",
    "aggregation": "sum",
    "startDateTime": "2022-01-01T00:00:00.0000000+12:00",
    "endDateTime": "2022-01-01T00:00:00.0000000+12:00"
  }
]

Response

Success

Changes

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