---
title: "Post a new exercise activity"
method: POST
path: "/patients/{patient_id}/exercise"
tags: ["exercise"]
---

# Post a new exercise activity

`POST /patients/{patient_id}/exercise`

## Path parameters

- `patient_id` integer, required

## Request body

- CreatePatientExerciseRequest
  - `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/081a2697c0f1?raw)
