---
title: "Syncs cvd_risks data from device to server."
method: POST
path: "/cvd_risks/sync"
tags: ["CVD Risk"]
---

# Syncs cvd_risks data from device to server.

`POST /cvd_risks/sync`

## Headers

- `HTTP_X_USER_ID` unknown
- `HTTP_X_FACILITY_ID` unknown

## Request body

- object
  - `cvd_risks` CvdRisk[], nullable, required
    - `id` string, uuid, required
    - `patient_id` string, uuid, required
    - `risk_score` string, required — This string should not be empty.
    - `deleted_at` string, date-time, nullable — Timestamp with millisecond precision.
    - `created_at` string, date-time, required — Timestamp with millisecond precision.
    - `updated_at` string, date-time, required — Timestamp with millisecond precision.

## Response `200`

some, or no errors were found

- object
  - `errors` Error[], nullable
    - `id` string, uuid — Id of the record with errors
    - `schema` string[] — List of json schema error strings describing validation errors
    - `field_with_error` string[]

## Other responses

- `403` — user is not allowed to sync

---

[API](https://skmtc.dev/simpledotorg/apis/untitled-api.md) · [All operations](https://skmtc.dev/simpledotorg/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/simpledotorg/untitled-api/revisions/31ffa1d07978/schema)
