---
title: "Update sync settings for remote imap account."
method: PUT
path: "/api/v1/settings/remoteimap"
tags: ["Settings"]
---

# Update sync settings for remote imap account.

`PUT /api/v1/settings/remoteimap`

## Request

- Base URL: `https://api.intheloop.io`
- URL: `https://api.intheloop.io/api/v1/settings/remoteimap`
- Auth: API key in header `Authorization`

## Headers

- `Authorization` string

## Request body

- SyncSettingsRemoteImap: Sync settings for Remote Imap service
  - `id` string: Resource id
  - `name` string: Resource name or title
  - `revision` string: Resource revision
  - `clientId` string: Resource client id
  - `$type` string, required
  - `isEnabled` boolean: Sync is enabled
  - `isPaused` boolean: Sync is paused (only contact sync is performed, no emails are imported)
  - `importDayRange` integer: Email import day range for the past
  - `threadingMode` 'Recipient' | 'Standard': Threading mode for syncing
  - `email` string: User's email
  - `imapHost` string: IMAP host, e.g. imap.aviato.com
  - `imapPort` integer, required: IMAP port
  - `imapUsername` string: IMAP username
  - `imapPassword` string: IMAP password
  - `smtpHost` string: SMTP host, e.g. smtp.aviato.net
  - `smtpPort` integer, required: SMTP port
  - `smtpUsername` string: SMTP username
  - `smtpPassword` string: SMTP password
  - `sslRequired` boolean, required: Is SSL required

## Response `200`

OK

- SyncSettingsRemoteImap: Sync settings for Remote Imap service
  - `id` string: Resource id
  - `name` string: Resource name or title
  - `revision` string: Resource revision
  - `clientId` string: Resource client id
  - `$type` string, required
  - `isEnabled` boolean: Sync is enabled
  - `isPaused` boolean: Sync is paused (only contact sync is performed, no emails are imported)
  - `importDayRange` integer: Email import day range for the past
  - `threadingMode` 'Recipient' | 'Standard': Threading mode for syncing
  - `email` string: User's email
  - `imapHost` string: IMAP host, e.g. imap.aviato.com
  - `imapPort` integer, required: IMAP port
  - `imapUsername` string: IMAP username
  - `imapPassword` string: IMAP password
  - `smtpHost` string: SMTP host, e.g. smtp.aviato.net
  - `smtpPort` integer, required: SMTP port
  - `smtpUsername` string: SMTP username
  - `smtpPassword` string: SMTP password
  - `sslRequired` boolean, required: Is SSL required

## Other responses

- `400`: Bad request. Check fields message and error code from response body for additional information.
- `401`: Unauthorized request. Check fields message and error code from response body for additional information.
- `429`: Too many requests. Check response header Retry-After indicating how long to wait before making a new request.
- `451`: Unavailable because account is not verified.

---

[API](https://skmtc.dev/intheloop/apis/loop-api.md) - [All operations](https://skmtc.dev/intheloop/apis/loop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/intheloop/apis/loop-api/revisions/0892c5ba0787?raw)
