---
title: "Syncs call_result data from device to server."
method: POST
path: "/call_results/sync"
tags: ["Call Result"]
---

# Syncs call_result data from device to server.

`POST /call_results/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/call_results/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
  - `call_results` CallResult[], nullable, required
    - `id` string, uuid, required
    - `user_id` string, uuid, required
    - `patient_id` string, uuid, nullable
    - `facility_id` string, uuid, nullable
    - `appointment_id` string, uuid, required
    - `remove_reason` 'already_visited' | 'not_responding' | 'refused_to_come_back' | 'invalid_phone_number' | 'public_hospital_transfer' | 'moved_to_private' | 'moved' | 'dead' | 'other' | 'null', nullable
    - `result_type` 'agreed_to_visit' | 'remind_to_call_later' | 'removed_from_overdue_list', required
    - `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

## Changes

- **2021-10-07** (v4) `90237464922d`: 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/call_results/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)
