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

# Modifies a list of exercises

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

## Path parameters

- `patient_id` integer, required

## Request body

- PutPatientExercisesBulkRequest
  - `deleted_exercises` DeletePatientExerciseRequest[] — list of exercises to be deleted
    - `source_id` string, required — id of exercise from source
  - `exercises` PutPatientExerciseRequest[] — list of exercises to be updated
    - `duration_min` integer, required — time in minutes
    - `exercise_date` string, required — calendar date in format YYYY-MM-DD
    - `exercise_time` string, required — time in HH:MM:SS
    - `exercise_type` 'strength-resistance' | 'aerobic training' | 'balance and stability' | 'flexibility-stretching' | 'mixed cardio/strength' | 'other', required
    - `intensity` string, nullable, required
    - `note` string, nullable — note that can be added to provide additional description Max 1024 char
    - `source` string, nullable — source of exercise data
    - `source_id` string, nullable — id of exercise from source

## Response `200`

successful operation

- PatientExerciseResponse[]
  - `duration_min` integer — time in minutes
  - `exercise_date` string — calendar date in format YYYY-MM-DD
  - `exercise_time` string — time in HH:MM:SS
  - `exercise_type` 'logged by cgm' | 'strength-resistance' | 'aerobic training' | 'balance and stability' | 'flexibility-stretching' | 'mixed cardio/strength' | 'other'
  - `id` integer, required
  - `intensity` string, nullable
  - `note` string, nullable — note that can be added to provide additional description Max 1024 char
  - `source` string, nullable — source of exercise data
  - `source_id` string, nullable — id of exercise from source

---

[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/750cc0d96a93?raw)
