---
title: "Update Sync Error Handling"
method: PUT
path: "/api/syncs/{id}/error-handling"
tags: ["Model Sync Error Handling"]
---

# Update Sync Error Handling

`PUT /api/syncs/{id}/error-handling`

Updates the error handling settings for a model sync.

## Path parameters

- `id` string, uuid, required — Unique identifier of the model sync.

## Headers

- `X-Polytomic-Version` string

## Request body

- UpdateSyncErrorHandlingRequest
  - `auto_retry_record_errors` boolean, nullable — Whether records that fail are automatically retried on the next run. Omit to leave unchanged.
  - `notify_on_record_errors` boolean, nullable — Whether subscribers are notified when individual records fail, in addition to whole-sync failures. Omit to leave unchanged.
  - `subscribers` string[], nullable — Email addresses notified when this sync fails. Replaces the current list; pass an empty list to unsubscribe everyone. Omit to leave the list unchanged.
  - `warning_notifications` boolean, nullable — Whether subscribers are notified when the sync completes with warnings. Omit to leave unchanged.

## Response `200`

OK

- SyncErrorHandlingEnvelope
  - `data` SyncErrorHandling
    - `auto_retry_record_errors` boolean — Whether records that fail are automatically retried on the next run.
    - `notify_on_record_errors` boolean — Whether subscribers are notified when individual records fail, in addition to whole-sync failures.
    - `subscribers` string[], nullable — Email addresses notified when this sync fails.
    - `warning_notifications` boolean — Whether subscribers are notified when the sync completes with warnings.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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