# PUT /api/v1/ramp/sync-config

> Update Ramp sync configuration

- **Tag:** ramp
- **Operation ID:** `update_sync_config_api_v1_ramp_sync_config_put`

## Description

Partially update sync settings — date range, card/user/department filters, and type toggles.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Request body

Schema: `RampSyncConfigUpdate`

- `sync_enabled` (boolean)
- `auto_sync_enabled` (boolean)
- `auto_sync_interval_hours` (integer)
- `sync_from_date` (string · date-time)
- `sync_to_date` (string · date-time)
- `sync_transactions` (boolean)
- `sync_reimbursements` (boolean)
- `sync_bills` (boolean)
- `sync_transfers` (boolean)
- `sync_cashbacks` (boolean)
- `sync_bill_payments` (boolean)
- `sync_statements` (boolean)
- `sync_card_ids` (array · string)
- `sync_user_ids` (array · string)
- `sync_department_ids` (array · string)

## Responses

### 200 — Successful Response

### 400 — Bad Request - Invalid input

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

## Code samples

### cURL

```bash
curl -X PUT 'https://api.ondayzero.com/api/v1/ramp/sync-config' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "sync_enabled": false,
  "auto_sync_enabled": false,
  "auto_sync_interval_hours": 0,
  "sync_from_date": "2026-01-01T00:00:00Z",
  "sync_to_date": "2026-01-01T00:00:00Z",
  "sync_transactions": false
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/ramp/sync-config', {
  method: 'PUT',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "sync_enabled": false,
  "auto_sync_enabled": false,
  "auto_sync_interval_hours": 0,
  "sync_from_date": "2026-01-01T00:00:00Z",
  "sync_to_date": "2026-01-01T00:00:00Z",
  "sync_transactions": false
}),
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

payload = {
  "sync_enabled": false,
  "auto_sync_enabled": false,
  "auto_sync_interval_hours": 0,
  "sync_from_date": "2026-01-01T00:00:00Z",
  "sync_to_date": "2026-01-01T00:00:00Z",
  "sync_transactions": false
}

response = httpx.put("https://api.ondayzero.com/api/v1/ramp/sync-config", headers=headers, json=payload)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/ramp/update-sync-config
- OpenAPI slice: https://www.ondayzero.com/docs/reference/ramp/update-sync-config/openapi.json
- Other endpoints in **ramp**: https://www.ondayzero.com/docs/reference/ramp
