---
title: "Upload data logs (Profile Authorization)"
method: POST
path: "/api/v1/profile/data/log"
tags: ["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)
- URL: `https://api.sahha.ai/api/v1/profile/data/log`
- Auth: API key in header `Authorization`

## Request body

- DataLogDto[]
  - `id` string, uuid, nullable
  - `parentId` string, uuid, nullable
  - `logType` string
  - `dataType` string
  - `value` number, double: The amount of times the data type occurred within the time period.
  - `unit` string: The unit of measure for the value.
  - `source` string: Source of this data log. e.g. 'Iphone X', 'Walking Buddy'
  - `sourceId` integer: Unique Source Identifier of this data log for the profile.
  - `recordingMethod` string: 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).
  - `deviceId` string, uuid, nullable: The identifier for the device which recorded the log.
  - `deviceType` string: The device which recorded the log.
  - `periodicity` string: If the log is an aggregate this determins it's periodicity - daily, hourly
  - `aggregation` string: If the log is an aggregate this determines it's aggregation type - sum, avg, max, min
  - `startDateTime` string, date-time: Denotes the start date and time for the log period. In ISO 8601 format with a timezone offset.
  - `endDateTime` string, date-time: Denotes the end date and time for the log period. In ISO 8601 format with a timezone offset.
  - `additionalProperties` object

## Response `200`

Success

---

[API](https://skmtc.dev/sahha/apis/sahha-platform-v1.md) - [All operations](https://skmtc.dev/sahha/apis/sahha-platform-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/sahha/apis/sahha-platform-v1/revisions/c7f918b46707?raw)
