---
title: "Post/Update patient's guided health program module state"
method: PUT
path: "/patients/{patient_id}/ghp/module_state/{module_id}"
tags: ["guided health"]
---

# Post/Update patient's guided health program module state

`PUT /patients/{patient_id}/ghp/module_state/{module_id}`

## Request

- Base URL: `https://api.rxfoodapp.com/api`
- URL: `https://api.rxfoodapp.com/api/patients/{patient_id}/ghp/module_state/{module_id}`
- Auth: HTTP bearer

## Path parameters

- `patient_id` integer, required
- `module_id` string, required

## Request body

- UpdatePatientGuidedHealthModuleStateRequest
  - `module_completed_at` string, nullable: YYYY-MM-DD HH:MM:SS in UTC
  - `module_started_at` string, nullable: YYYY-MM-DD HH:MM:SS in UTC
  - `state` object, nullable

## Response `200`

successful operation

- PatientGuidedHealthModuleStateResponse
  - `module_completed_at` string, nullable, required: YYYY-MM-DD HH:MM:SS in UTC
  - `module_id` string, required
  - `module_started_at` string, nullable, required: YYYY-MM-DD HH:MM:SS in UTC
  - `state` object, nullable

---

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