---
title: "Syncs Teleconsultations from device to server."
method: POST
path: "/teleconsultations/sync"
tags: ["Teleconsultations"]
---

# Syncs Teleconsultations from device to server.

`POST /teleconsultations/sync`

## Request

- Base URL: `/api/v4` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v4/teleconsultations/sync`
- Auth: HTTP bearer and API key in header `X-USER-ID` and API key in header `X-FACILITY-ID`

## Headers

- `HTTP_X_USER_ID` unknown
- `HTTP_X_FACILITY_ID` unknown

## Request body

- object
  - `teleconsultations` Teleconsultation[], nullable, required
    - `id` string, uuid
    - `patient_id` string, uuid
    - `medical_officer_id` string, uuid
    - `request` object, nullable
      - `requester_id` string, uuid
      - `facility_id` string, uuid
      - `requested_at` string, date-time: Timestamp with millisecond precision.
      - `requester_completion_status` 'yes' | 'no' | 'waiting' | 'null', nullable
    - `record` object, nullable
      - `recorded_at` string, date-time: Timestamp with millisecond precision.
      - `teleconsultation_type` 'audio' | 'video' | 'message'
      - `patient_took_medicines` 'yes' | 'no'
      - `patient_consented` 'yes' | 'no'
      - `medical_officer_number` string, nullable
    - `created_at` string, date-time: Timestamp with millisecond precision.
    - `updated_at` string, date-time: Timestamp with millisecond precision.
    - `deleted_at` string, date-time, nullable: Timestamp with millisecond precision.

## Response `200`

teleconsultations created

## Other responses

- `403`: user is not allowed to sync

## Changes

- **2020-09-18** (v4) `79f22277c034`: 1 info
  - endpoint added
- **2020-04-20** (v4) `44261500935e`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/simpledotorg/apis/simple-api/changes/teleconsultations/sync/post.md)

---

[API](https://skmtc.dev/simpledotorg/apis/simple-api.md) - [All operations](https://skmtc.dev/simpledotorg/apis/simple-api/llms.txt) - [OpenAPI document](https://skmtc.dev/simpledotorg/apis/simple-api/revisions/31ffa1d07978?raw)
