---
title: "Update organization sync settings"
method: PATCH
path: "/v1/users/settings"
tags: ["Settings"]
---

# Update organization sync settings

`PATCH /v1/users/settings`

## Request

- Base URL: `http://0.0.0.0:3000`
- URL: `http://0.0.0.0:3000/v1/users/settings`
- Auth: none declared

Updates sync settings for the partner's organization. Currently supports configuring the initial email sync depth (in days).

**Authentication**:
- `Authorization: Bearer <client_secret>` header
- `X-Auth-Type: partner` header

**Required fields**:
- `initial_sync_days`: Number of days to sync on initial connection (7-90)

**Optional fields**:
- `client_id`: Partner client ID (not required if using header auth)

## Request body

- object
  - `client_id` string
  - `initial_sync_days` integer, required

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `initial_sync_days` integer, nullable

## Other responses

- `400`: Default Response
- `401`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/attrove/apis/attrove-api.md) · [All operations](https://skmtc.dev/attrove/apis/attrove-api/llms.txt) · [OpenAPI document](https://skmtc.dev/attrove/apis/attrove-api/revisions/fcdc818b45cb?raw)
