---
title: "Modifies a list of health data"
method: PUT
path: "/patients/{patient_id}/health_data/bulk"
tags: ["health_data"]
---

# Modifies a list of health data

`PUT /patients/{patient_id}/health_data/bulk`

## Path parameters

- `patient_id` integer, required

## Request body

- union[]
  - union
    - PutPatientBulkHealthDataRequestSleep
      - `deleted` DeletePatientSleepRequest[], required
        - `source_id` string, required — id of sleep from source
      - `type` 'sleep', required
      - `updates` PutPatientSleepRequest[], required
        - `note` string, nullable — note that can be added to provide additional description Max 1024 char
        - `sleep_end_date_time` string, required — datetime in format YYYY-MM-DD HH:MM:SS
        - `sleep_start_date_time` string, required — datetime in format YYYY-MM-DD HH:MM:SS
        - `sleep_type` 'inBed' | 'asleepUnspecified' | 'awake' | 'asleepCore' | 'asleepDeep' | 'asleepREM', required
        - `source` string, nullable — source of sleep data
        - `source_id` string, nullable — id of sleep from source
    - PutPatientBulkHealthDataRequestSteps
      - `deleted` DeletePatientStepsRequest[], required
        - `source_id` string, required — id of steps from source
      - `type` 'steps', required
      - `updates` PutPatientStepsRequest[], required
        - `note` string, nullable — note that can be added to provide additional description Max 1024 char
        - `source` string, nullable — source of steps data
        - `source_id` string, nullable — id of steps from source
        - `step_count` integer, required — number of steps taken
        - `steps_date` string, required — calendar date in format YYYY-MM-DD
        - `steps_end_time` string, required — time in format hh:mm:ss
        - `steps_start_time` string, required — time in format hh:mm:ss
    - PutPatientBulkHealthDataRequestWeight
      - `deleted` DeletePatientWeightRequest[], required
        - `source_id` string, required — id of weight from source
      - `type` 'weight', required
      - `updates` PutPatientWeightRequest[], required
        - `note` string, nullable — note that can be added to provide additional description Max 1024 char
        - `source` 'healthkit' | 'healthconnect', nullable — source of weight data
        - `source_id` string, nullable — id of weight from source
        - `weight_date` string, nullable — calendar date in format YYYY-MM-DD
        - `weight_kg` number, float, required — weight in kilograms
        - `weight_time` string, nullable — time in HH:MM:SS
    - PutPatientBulkHealthDataRequestBloodPressure
      - `deleted` DeletePatientBloodPressureRequest[], required
        - `source_id` string, required — id of blood pressure from source
      - `type` 'blood_pressure', required
      - `updates` PutPatientBloodPressureRequest[], required
        - `blood_pressure_date` string, nullable — calendar date in format YYYY-MM-DD
        - `blood_pressure_time` string, nullable — time in HH:MM:SS
        - `body_position` integer, nullable — body position (Health Connect numeric enum)
        - `diastolic_mm_hg` integer, required — diastolic blood pressure in mmHg
        - `measurement_location` integer, nullable — measurement location (Health Connect numeric enum)
        - `note` string, nullable — note that can be added to provide additional description Max 1024 char
        - `source` 'healthkit' | 'healthconnect', nullable — source of blood pressure data
        - `source_id` string, nullable — id of blood pressure from source
        - `systolic_mm_hg` integer, required — systolic blood pressure in mmHg
    - PutPatientBulkHealthDataRequestMindfulness
      - `deleted` DeletePatientMindfulnessRequest[], required
        - `source_id` string, required — id of mindfulness from source
      - `type` 'mindfulness', required
      - `updates` PutPatientMindfulnessRequest[], required
        - `mindfulness_activity_type` string, nullable — selected activity type of mindfulness
        - `mindfulness_date` string, required — calendar date in format YYYY-MM-DD
        - `mindfulness_end_time` string, required — time in format hh:mm:ss
        - `mindfulness_start_time` string, required — time in format hh:mm:ss
        - `note` string, nullable — note that can be added to provide additional description Max 1024 char
        - `source` string, nullable — source of mindfulness data
        - `source_id` string, nullable — id of mindfulness from source
    - PutPatientBulkHealthDataRequestEmotionalHealth
      - `deleted` DeletePatientEmotionalHealthRequest[], required
        - `source_id` string, required — id of emotional health from source
      - `type` 'emotional_health', required
      - `updates` PutPatientEmotionalHealthRequest[], required
        - `association` string, nullable — association of emotional health
        - `emotional_health_activity_type` string, nullable — selected activity type of emotional health
        - `emotional_health_date` string, required — calendar date in format YYYY-MM-DD
        - `emotional_health_time` string, required — time in format hh:mm:ss
        - `kind` string, nullable — kind of emotional health
        - `label` string, nullable — label of emotional health
        - `note` string, nullable — note that can be added to provide additional description Max 1024 char
        - `source` string, nullable — source of emotional health data
        - `source_id` string, nullable — id of emotional health from source
        - `valence` string, nullable — valence of emotional health

## Response `200`

successful operation

## Other responses

- `404` — patient or health data type not found

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) · [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) · [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/5a99db4cbce3?raw)
