# UpdatePatientSummary Internal endpoint which updates the summary in all patient records which match the user id. Endpoint: POST /v1/patients/{patientId}/summary Version: 1.0 Security: sessionToken ## Path parameters: - `patientId` (string, required) ## Request fields (application/json): - `cgmStats` (object) A summary of a users recent CGM glucose values - `cgmStats.id` (string) Summary Unique Identifier Example: "2fe2488217ee43e1b2e83c2f" - `cgmStats.config` (object) Summary schema version and calculation configuration - `cgmStats.config.schemaVersion` (number, required) Summary schema version - `cgmStats.config.highGlucoseThreshold` (number, required) Threshold used for determining if a value is high - `cgmStats.config.veryHighGlucoseThreshold` (number, required) Threshold used for determining if a value is very high - `cgmStats.config.lowGlucoseThreshold` (number, required) Threshold used for determining if a value is low - `cgmStats.config.veryLowGlucoseThreshold` (number, required) Threshold used for determining if a value is very low - `cgmStats.dates` (object) dates tracked for summary calculation - `cgmStats.dates.lastUpdatedDate` (string) Date of the last calculation - `cgmStats.dates.lastUpdatedReason` (array) List of reasons the summary was updated for - `cgmStats.dates.hasFirstData` (boolean, required) - `cgmStats.dates.firstData` (string) Date of the first included value - `cgmStats.dates.hasLastData` (boolean, required) - `cgmStats.dates.lastData` (string) Date of the last calculated value - `cgmStats.dates.hasLastUploadDate` (boolean, required) - `cgmStats.dates.lastUploadDate` (string) Created date of the last calculated value - `cgmStats.dates.hasOutdatedSince` (boolean, required) - `cgmStats.dates.outdatedSince` (string) Date of the first user upload after lastData, removed when calculated - `cgmStats.dates.outdatedSinceLimit` (string) Upper limit of the OutdatedSince value to prevent infinite queue duration - `cgmStats.dates.outdatedReason` (array) List of reasons the summary was marked outdated for - `cgmStats.periods` (object) A map to each supported CGM summary period - `bgmStats` (object) A summary of a users recent BGM glucose values - `bgmStats.periods` (object) A map to each supported BGM summary period